From f8ab32aaa4efce2c9a310a14d10b19fb8544cfd9 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 2 May 2020 00:34:13 +0100 Subject: 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. --- toxcore/group.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'toxcore/group.h') 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 */ int group_peernumber_is_ours(const Group_Chats *g_c, uint32_t groupnumber, uint32_t peernumber); -/* List all the (frozen, if frozen is true) peers in the group chat. - * - * Copies the names of the peers to the `name[length][MAX_NAME_LENGTH]` array. - * - * Copies the lengths of the names to `lengths[length]` - * - * returns the number of peers on success. - * - * return -1 on failure. - */ -int group_names(const Group_Chats *g_c, uint32_t groupnumber, uint8_t names[][MAX_NAME_LENGTH], uint16_t lengths[], - uint16_t length, bool frozen); - /* Set handlers for custom lossy packets. */ void group_lossy_packet_registerhandler(Group_Chats *g_c, uint8_t byte, lossy_packet_cb *function); -- cgit v1.2.3