From 5ea0b9a8f3bbb0568be576e533bee61eb8ec3471 Mon Sep 17 00:00:00 2001 From: ikozyris <80053394+ikozyris@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:35:15 +0300 Subject: [PATCH] remove obsolete commands These command were created to fix bugs which no longer exist --- utils/key_func.cpp | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/utils/key_func.cpp b/utils/key_func.cpp index b3a5d58..c9172c7 100755 --- a/utils/key_func.cpp +++ b/utils/key_func.cpp @@ -83,26 +83,8 @@ void command() doupdate(); wmove(text_win, y, x); } else if (strcmp(tmp, "help") == 0) - print2header("resetheader, shrink, usg, stats, run, setgap", 1); - else if (strcmp(tmp, "setgap") == 0) - ++it->gps; - else if (strcmp(tmp, "fixgap") == 0) { - unsigned msec = 0, trigger = 1; /* 1ms */ - unsigned iterations = 0; - clock_t before = clock(); - do { - mv_curs(*it, it->len); - mv_curs(*it, x); - clock_t difference = clock() - before; - msec = difference * 1000 / CLOCKS_PER_SEC; - iterations++; - } while (msec < trigger); - char tmp[128]; - snprintf(tmp, maxx, "%u,%03u ms (%u iterations)", - msec / 1000, msec % 1000, iterations); - print2header(tmp, 1); - wmove(text_win, y, x); - } else if (strcmp(tmp, "scroll") == 0) { + print2header("resetheader, shrink, usage, stats, run, scroll", 1); + else if (strcmp(tmp, "scroll") == 0) { char *in = input_header("Scroll to line: "); unsigned a; sscanf(in, "%u", &a);