diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-09-15 23:59:12 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-09-15 23:59:12 -0700 |
commit | f0436579c03922006a6d3ff3f24b3eb8845aed9f (patch) | |
tree | c620d66e23660783738e3fae6cea244966495a04 /log_browser.lua | |
parent | 6e429d3e4d5f11a43084e38eb605ff7efc9ea4f8 (diff) | |
parent | 09c76c82c2a415839ad0d50d9fc14e883caeae6e (diff) | |
download | view.love-f0436579c03922006a6d3ff3f24b3eb8845aed9f.tar.gz |
Merge text.love
Diffstat (limited to 'log_browser.lua')
-rw-r--r-- | log_browser.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/log_browser.lua b/log_browser.lua index 078db06..6432d85 100644 --- a/log_browser.lua +++ b/log_browser.lua @@ -35,7 +35,6 @@ function log_browser.parse(State) if rest then line.data = rest end - line.filename = guess_source(line.filename) line.line_number = tonumber(line.line_number) if line.data:sub(1,1) == '{' then local data = json.decode(line.data) @@ -75,15 +74,6 @@ function table.shallowcopy(x) return {unpack(x)} end -function guess_source(filename) - local possible_source = filename:gsub('%.lua$', '%.splua') - if file_exists(possible_source) then - return possible_source - else - return filename - end -end - function log_browser.draw(State, hide_cursor) assert(#State.lines == #State.line_cache) local mouse_line_index = log_browser.line_index(State, App.mouse_x(), App.mouse_y()) |