Skip to content

Commit 027ae09

Browse files
committed
remove dead code
1 parent 126ac6f commit 027ae09

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

nattlua/analyzer/control_flow.lua

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,6 @@ return function(META)
182182
self:Error(type_errors.plain_error(msg))
183183
end
184184

185-
function META:GetThrownErrorMessage()
186-
return self.lua_error_thrown or
187-
self.lua_assert_error_thrown and
188-
self.lua_assert_error_thrown.msg
189-
end
190-
191-
function META:ClearError()
192-
self.lua_error_thrown = nil
193-
self.lua_assert_error_thrown = nil
194-
end
195-
196185
function META:Return(node, types)
197186
local scope = self:GetScope()
198187
local function_scope = scope:GetNearestFunctionScope()
@@ -355,10 +344,6 @@ return function(META)
355344
return true
356345
end
357346

358-
function META:UncertainReturn()
359-
self.call_stack[1].scope:UncertainReturn()
360-
end
361-
362347
function META:Print(...)
363348
local node = self.current_expression
364349
local start, stop = node:GetStartStop()

nattlua/lexer/lexer.lua

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,11 @@ function META:GetPosition()
7171
return self.Position
7272
end
7373

74-
function META:TheEnd()--[[#: boolean]]
75-
return self.Position > self:GetLength()
76-
end
77-
7874
function META:IsString(str--[[#: string]], offset--[[#: number | nil]])--[[#: boolean]]
7975
offset = offset or 0
8076
return self.Code:IsStringSlice(self.Position + offset, self.Position + offset + #str - 1, str)
8177
end
8278

83-
function META:IsStringLower(str--[[#: string]])--[[#: boolean]]
84-
return self.Code:GetStringSlice(self.Position, self.Position + #str - 1):lower() == str
85-
end
86-
8779
function META:OnError(
8880
code--[[#: Code]],
8981
msg--[[#: string]],

0 commit comments

Comments
 (0)