]> git.mdlowis.com Git - projs/tide.git/commitdiff
Minor cleanup
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 7 Aug 2017 13:35:46 +0000 (09:35 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 7 Aug 2017 13:35:46 +0000 (09:35 -0400)
lib/utils.c
tide.c

index 05e0b6372fe48e30bd947348c04357ecef8585a5..ecf39ed01130b2319d04d67a32a5a8e0083d085d 100644 (file)
@@ -95,12 +95,6 @@ char* fdgets(int fd) {
     return str;
 }
 
-char* chomp(char* in) {
-    char* pos = strrchr(in, '\n');
-    if (pos) *pos = '\0';
-    return in;
-}
-
 uint64_t modtime(char* path) {
     struct stat status;
     if (stat(path, &status) < 0)
diff --git a/tide.c b/tide.c
index b1a89a0f707eb15ba9ae6344b2bc2204eafda751..0fb1b699188a00de4717bda7aa314a9fefe88fe7 100644 (file)
--- a/tide.c
+++ b/tide.c
@@ -26,9 +26,6 @@ char* ShellCmd[] = { NULL, "-c", NULL, NULL };
 /* Sed command used to execute commands marked with ':' sigil */
 char* SedCmd[] = { "sed", "-e", NULL, NULL };
 
-/* Fuzzy picker for tags in a ctags database. */
-char* PickTagCmd[] = { "picktag", NULL, "tags", NULL, NULL };
-
 /* Try to fetch the text with tide-fetch */
 char* FetchCmd[] = { "tfetch", NULL, NULL };