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/Messenger.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/Messenger.h')
-rw-r--r-- | toxcore/Messenger.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index 74c19e09..31526b63 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h | |||
@@ -651,15 +651,6 @@ int file_seek(const Messenger *m, int32_t friendnumber, uint32_t filenumber, uin | |||
651 | int file_data(const Messenger *m, int32_t friendnumber, uint32_t filenumber, uint64_t position, const uint8_t *data, | 651 | int file_data(const Messenger *m, int32_t friendnumber, uint32_t filenumber, uint64_t position, const uint8_t *data, |
652 | uint16_t length); | 652 | uint16_t length); |
653 | 653 | ||
654 | /* Give the number of bytes left to be sent/received. | ||
655 | * | ||
656 | * send_receive is 0 if we want the sending files, 1 if we want the receiving. | ||
657 | * | ||
658 | * return number of bytes remaining to be sent/received on success | ||
659 | * return 0 on failure | ||
660 | */ | ||
661 | uint64_t file_dataremaining(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint8_t send_receive); | ||
662 | |||
663 | /** A/V related */ | 654 | /** A/V related */ |
664 | 655 | ||
665 | /* Set the callback for msi packets. | 656 | /* Set the callback for msi packets. |