summaryrefslogtreecommitdiff
path: root/toxcore/group.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-05-02 00:34:13 +0100
committeriphydf <iphydf@users.noreply.github.com>2020-05-02 22:00:09 +0100
commitf8ab32aaa4efce2c9a310a14d10b19fb8544cfd9 (patch)
tree4dbc49882d6af0954c533b2482b2100d312d2bc7 /toxcore/group.h
parent2570ddcb17fdf5bea56c6bc1c5c2d04ba2068ee7 (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/group.h')
-rw-r--r--toxcore/group.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/toxcore/group.h b/toxcore/group.h
index 1e054de3..eb8db55f 100644
--- a/toxcore/group.h
+++ b/toxcore/group.h
@@ -355,19 +355,6 @@ int group_number_peers(const Group_Chats *g_c, uint32_t groupnumber, bool frozen
355 */ 355 */
356int group_peernumber_is_ours(const Group_Chats *g_c, uint32_t groupnumber, uint32_t peernumber); 356int group_peernumber_is_ours(const Group_Chats *g_c, uint32_t groupnumber, uint32_t peernumber);
357 357
358/* List all the (frozen, if frozen is true) peers in the group chat.
359 *
360 * Copies the names of the peers to the `name[length][MAX_NAME_LENGTH]` array.
361 *
362 * Copies the lengths of the names to `lengths[length]`
363 *
364 * returns the number of peers on success.
365 *
366 * return -1 on failure.
367 */
368int group_names(const Group_Chats *g_c, uint32_t groupnumber, uint8_t names[][MAX_NAME_LENGTH], uint16_t lengths[],
369 uint16_t length, bool frozen);
370
371/* Set handlers for custom lossy packets. */ 358/* Set handlers for custom lossy packets. */
372void group_lossy_packet_registerhandler(Group_Chats *g_c, uint8_t byte, lossy_packet_cb *function); 359void group_lossy_packet_registerhandler(Group_Chats *g_c, uint8_t byte, lossy_packet_cb *function);
373 360