From f9bbb8fa35f64fe722086c785974e96427c5ab28 Mon Sep 17 00:00:00 2001 From: dam Date: Fri, 28 Jul 2023 13:33:58 +0100 Subject: Removed saturating arithmetic test code. --- ttt.jai | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/ttt.jai b/ttt.jai index aa511ea..b40c744 100644 --- a/ttt.jai +++ b/ttt.jai @@ -1185,19 +1185,6 @@ main :: () { is_exit_requested := false; for 1..args.count-1 { - - if is_equal_to_any(args[it], "--test", "-t") { - if (load_database(*database, db_file_path) == false) { - print_error("Failed to load database."); - exit(1); - } - start := current_time_monotonic(); - update_total_times(*database); - stop := current_time_monotonic(); - print("Took % ms to update total times for % entries.\n", to_seconds(stop-start), database.tasks.count); - exit(0); - } - if is_equal_to_any(args[it], "--help", "-h") { write_strings( "Usage: ttt [OPTION]... [FILE]...\n", @@ -1547,7 +1534,7 @@ main :: () { continue; } - if (add_task(db, selected_task) == null) continue; // TODO Show error? + add_task(db, selected_task); trigger_autosave(); -- cgit v1.2.3