delete some logs

One open question is how to manage logs while drawing, since they can be
extremely verbose. Neither tags nor depths seem like the right metaphor
here, and that gives me pause that I perhaps don't see the full space of
needs yet.
This commit is contained in:
Kartik K. Agaram 2022-09-17 23:21:02 -07:00
parent e3f9908d13
commit c02a5ee1ff
1 changed files with 0 additions and 3 deletions

View File

@ -53,19 +53,16 @@ function add_hotkey_to_menu(s)
end end
function source.draw_file_navigator() function source.draw_file_navigator()
log_start('render file navigator')
for i,file in ipairs(File_navigation.candidates) do for i,file in ipairs(File_navigation.candidates) do
if file == 'source' then if file == 'source' then
App.color(Menu_border_color) App.color(Menu_border_color)
love.graphics.line(Menu_cursor-10,2, Menu_cursor-10,Menu_status_bar_height-2) love.graphics.line(Menu_cursor-10,2, Menu_cursor-10,Menu_status_bar_height-2)
end end
log(2, file)
add_file_to_menu(file, i == File_navigation.index) add_file_to_menu(file, i == File_navigation.index)
if Menu_cursor >= App.screen.width - 5 then if Menu_cursor >= App.screen.width - 5 then
break break
end end
end end
log_end('render file navigator')
end end
function add_file_to_menu(s, cursor_highlight) function add_file_to_menu(s, cursor_highlight)