shithub: orca

Download patch

ref: 73000aae8e947c988d059cf26615a8a20a0b411f
parent: a39e017c36f996fdcb6b80895840b5b3c8b8806e
author: cancel <cancel@cancel.fm>
date: Tue Dec 11 12:59:00 EST 2018

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -1162,6 +1162,8 @@
   App_input_cmd_step_forward,
   App_input_cmd_toggle_show_event_list,
   App_input_cmd_toggle_play_pause,
+  App_input_cmd_copy,
+  App_input_cmd_paste,
 } App_input_cmd;
 
 void app_input_cmd(App_state* a, App_input_cmd ev) {
@@ -1215,6 +1217,9 @@
     a->draw_event_list = !a->draw_event_list;
     a->is_draw_dirty = true;
     break;
+  case App_input_cmd_copy:
+  case App_input_cmd_paste:
+    break;
   }
 }
 
@@ -1405,7 +1410,6 @@
   wtimeout(stdscr, 0);
   U64 last_time = 0;
   int cur_timeout = 0;
-  // double accum_time = 0.0;
 
   for (;;) {
     switch (key) {
@@ -1436,14 +1440,6 @@
         wtimeout(stdscr, new_timeout);
         cur_timeout = new_timeout;
       }
-      //struct timespec ts;
-      //ts.tv_sec = 0;
-      //// ts.tv_nsec = 1000 * 1000 * 1;
-      //ts.tv_nsec = 1;
-      //int ret = nanosleep(&ts, NULL);
-      //if (ret) {
-      //  fprintf(stderr, "interrupted sleep: %d\n", ret);
-      //}
     } break;
     case KEY_RESIZE: {
       int term_height = getmaxy(stdscr);