diff options
| author | dam <dam@gudinoff> | 2023-07-28 13:33:58 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-07-28 13:33:58 +0100 |
| commit | f9bbb8fa35f64fe722086c785974e96427c5ab28 (patch) | |
| tree | b18f43f4c0806bb9f326c0a0181765f573e3d6a6 | |
| parent | a0a0393e262d23a9718bba030a34d1db540f104a (diff) | |
| download | task-time-tracker-f9bbb8fa35f64fe722086c785974e96427c5ab28.tar.zst task-time-tracker-f9bbb8fa35f64fe722086c785974e96427c5ab28.zip | |
Removed saturating arithmetic test code.
| -rw-r--r-- | ttt.jai | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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(); |
