Skip to content

Commit e633d9a

Browse files
authored
Merge pull request openresty#52 from moonbingbing/master
use luacheck find some small optimization
2 parents edd5059 + c38793c commit e633d9a

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

lib/resty/core/base.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
local ffi = require 'ffi'
55
local ffi_new = ffi.new
66
local error = error
7-
local setmetatable = setmetatable
8-
local floor = math.floor
97
local ceil = math.ceil
108

119

lib/resty/core/exit.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ local error = error
99
local base = require "resty.core.base"
1010
local get_string_buf = base.get_string_buf
1111
local get_size_ptr = base.get_size_ptr
12-
local base = require "resty.core.base"
1312
local getfenv = getfenv
1413
local co_yield = coroutine._yield
1514

lib/resty/core/regex.lua

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ local lrucache = require "resty.lrucache"
1010
local lrucache_get = lrucache.get
1111
local lrucache_set = lrucache.set
1212
local ffi_string = ffi.string
13-
local ffi_new = ffi.new
1413
local ffi_gc = ffi.gc
1514
local ffi_copy = ffi.copy
1615
local ffi_cast = ffi.cast
@@ -21,21 +20,13 @@ local lshift = bit.lshift
2120
local sub = string.sub
2221
local fmt = string.format
2322
local byte = string.byte
24-
local setmetatable = setmetatable
25-
local concat = table.concat
2623
local ngx = ngx
2724
local type = type
2825
local tostring = tostring
2926
local error = error
3027
local get_string_buf = base.get_string_buf
3128
local get_string_buf_size = base.get_string_buf_size
32-
local get_size_ptr = base.get_size_ptr
3329
local new_tab = base.new_tab
34-
local floor = math.floor
35-
local print = print
36-
local tonumber = tonumber
37-
local ngx_log = ngx.log
38-
local ngx_ERR = ngx.ERR
3930

4031

4132
if not ngx.re then

0 commit comments

Comments
 (0)