diff --git a/hashtable.c b/hashtable.c index 7939be7e..165bb3a8 100644 --- a/hashtable.c +++ b/hashtable.c @@ -392,6 +392,8 @@ int htwcscmp(const void *s1, const void *s2) return wcscmp((const wchar_t *) s1, (const wchar_t *) s2); } +#if 0 + /* A comparison function for key-value pairs with multibyte-string keys. * The arguments are pointers to kvpair_T's (const kvpair_T *) whose keys are * multibyte strings. */ @@ -400,6 +402,8 @@ int keystrcoll(const void *k1, const void *k2) return strcoll(((const kvpair_T *) k1)->key, ((const kvpair_T *) k2)->key); } +#endif + /* A comparison function for key-value pairs with wide-string keys. * The arguments are pointers to kvpair_T's (const kvpair_T *) whose keys are * wide strings. */ @@ -408,6 +412,8 @@ int keywcscoll(const void *k1, const void *k2) return wcscoll(((const kvpair_T *) k1)->key, ((const kvpair_T *) k2)->key); } +#if 0 + /* `Free's the key of the specified key-value pair. * Can be used as the freer function to `ht_clear'. */ void kfree(kvpair_T kv) @@ -415,6 +421,8 @@ void kfree(kvpair_T kv) free(kv.key); } +#endif + /* `Free's the value of the specified key-value pair. * Can be used as the freer function to `ht_clear'. */ void vfree(kvpair_T kv) @@ -422,6 +430,8 @@ void vfree(kvpair_T kv) free(kv.value); } +#if 0 + /* `Free's the key and the value of the specified key-value pair. * Can be used as the freer function to `ht_clear'. */ void kvfree(kvpair_T kv) @@ -430,6 +440,8 @@ void kvfree(kvpair_T kv) free(kv.value); } +#endif + #if DEBUG_HASH /* Prints statistics. diff --git a/job.h b/job.h index ff5ea5de..5834b33c 100644 --- a/job.h +++ b/job.h @@ -73,7 +73,6 @@ extern void set_active_job(job_T *job) __attribute__((nonnull)); extern size_t add_job(_Bool current); extern void remove_job(size_t jobnumber); -extern void remove_job_nofitying_signal(size_t jobnumber); extern void remove_all_jobs(void); extern void neglect_all_jobs(void); extern size_t job_count(void) diff --git a/lineedit/complete.h b/lineedit/complete.h index 19ad52ce..8a0998d0 100644 --- a/lineedit/complete.h +++ b/lineedit/complete.h @@ -200,8 +200,6 @@ extern void le_compdebug(const char *format, ...) extern void set_completion_variables(void); -extern void le_new_command_candidate(wchar_t *cmdname) - __attribute__((nonnull)); extern void le_new_candidate(le_candtype_T type, wchar_t *restrict value, wchar_t *restrict desc, const le_compopt_T *compopt) diff --git a/path.c b/path.c index f0d51b71..c4f13b8d 100644 --- a/path.c +++ b/path.c @@ -86,6 +86,8 @@ bool is_regular_file(const char *path) return (stat(path, &st) == 0) && S_ISREG(st.st_mode); } +#if 0 + /* Checks if `path' is a non-regular file. */ bool is_irregular_file(const char *path) { @@ -93,6 +95,8 @@ bool is_irregular_file(const char *path) return (stat(path, &st) == 0) && !S_ISREG(st.st_mode); } +#endif + /* Checks if `path' is a readable file. */ bool is_readable(const char *path) { diff --git a/path.h b/path.h index ddb716d0..6b5c8bf8 100644 --- a/path.h +++ b/path.h @@ -74,7 +74,6 @@ extern void init_cmdhash(void); extern void clear_cmdhash(void); extern const char *get_command_path(const char *name, _Bool forcelookup) __attribute__((nonnull)); -extern void fill_cmdhash(const char *prefix, _Bool ignorecase); extern const char *get_command_path_default(const char *name) __attribute__((nonnull));