diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-05-02 00:34:13 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-05-02 22:00:09 +0100 |
commit | f8ab32aaa4efce2c9a310a14d10b19fb8544cfd9 (patch) | |
tree | 4dbc49882d6af0954c533b2482b2100d312d2bc7 /toxcore/list.h | |
parent | 2570ddcb17fdf5bea56c6bc1c5c2d04ba2068ee7 (diff) |
Add a check that we don't have any unused functions.
This check puts all of our code in a C++ anonymous namespace, which is
effectively making all functions `static`. This allows the compiler to
determine that a function is unused, so we can delete it.
Diffstat (limited to 'toxcore/list.h')
-rw-r--r-- | toxcore/list.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/toxcore/list.h b/toxcore/list.h index 9d65b53f..afe4240b 100644 --- a/toxcore/list.h +++ b/toxcore/list.h | |||
@@ -57,12 +57,4 @@ int bs_list_add(BS_List *list, const uint8_t *data, int id); | |||
57 | */ | 57 | */ |
58 | int bs_list_remove(BS_List *list, const uint8_t *data, int id); | 58 | int bs_list_remove(BS_List *list, const uint8_t *data, int id); |
59 | 59 | ||
60 | /* Removes the memory overhead | ||
61 | * | ||
62 | * return value: | ||
63 | * 1 : success | ||
64 | * 0 : failure | ||
65 | */ | ||
66 | int bs_list_trim(BS_List *list); | ||
67 | |||
68 | #endif | 60 | #endif |