Skip to content

Commit 70a8638

Browse files
committed
Removed redundant function.
1 parent 8ebdb33 commit 70a8638

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

util/UNZIP.LUA

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,7 @@ local function nbs(r)
4545
---Align byte
4646
local function ab() bb, bc = 0, 0 end
4747

48-
---Read raw bytes
49-
local function ra(n)
50-
ab()
51-
52-
-- o = out
53-
-- g = got
54-
-- t = take
55-
local o, g, t = {}, 0
56-
while g < n do
57-
if p > #b then
58-
if not F() then error("Unexpected EOF") end
59-
end
60-
t = math.min(n - g, #b - p + 1)
61-
o[#o +1] = b:sub(p, p + t - 1)
62-
p = p + t
63-
g = g + t
64-
end
65-
return table.concat(o)
66-
end
67-
68-
return { r = rb, a = ab, raw = ra }
48+
return { r = rb, a = ab }
6949
end
7050

7151
---Reverse bits

0 commit comments

Comments
 (0)