justincormack / ljsyscall

LuaJIT Unix syscall FFI
http://www.myriabit.com/ljsyscall/
Other
440 stars 53 forks source link

Remove unused variables from c.lua #196

Closed kbara closed 8 years ago

kbara commented 8 years ago

Given https://github.com/justincormack/ljsyscall/pull/195 , I decided to run a linter on c.lua to see if there were other unused variables. This patch removes most of them.

Several other things were found by the linter, which this patch doesn't address. The non-use of signal strikes me as the most significant:

    c.lua:144:11: shadowing upvalue off1 on line 141
    c.lua:186:25: unused argument signal
    c.lua:287:35: shadowing upvalue nr on line 55
    c.lua:290:33: shadowing upvalue nr on line 55