From 3cc93792da380ea669727bd54687de5f59ed6a77 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 3 Oct 2014 17:24:56 -0400 Subject: [PATCH] Removed useless variables. --- toxcore/group.c | 1 - toxcore/group.h | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/toxcore/group.c b/toxcore/group.c index aa5869f5..4644b837 100644 --- a/toxcore/group.c +++ b/toxcore/group.c @@ -397,7 +397,6 @@ static int addpeer(Group_Chats *g_c, int groupnumber, const uint8_t *real_pk, co g->group[g->numpeers].peer_number = peer_number; g->group[g->numpeers].last_recv = unix_time(); - g->group[g->numpeers].last_recv_msgping = unix_time(); ++g->numpeers; add_to_closest(g_c, groupnumber, real_pk, temp_pk); diff --git a/toxcore/group.h b/toxcore/group.h index bd28b335..2bd3702b 100644 --- a/toxcore/group.h +++ b/toxcore/group.h @@ -37,18 +37,11 @@ typedef struct { uint8_t real_pk[crypto_box_PUBLICKEYBYTES]; uint8_t temp_pk[crypto_box_PUBLICKEYBYTES]; - uint64_t pingid; - uint64_t last_pinged; - uint64_t last_recv; - uint64_t last_recv_msgping; uint32_t last_message_number; uint8_t nick[MAX_NAME_LENGTH]; - uint16_t nick_len; - - uint8_t deleted; - uint64_t deleted_time; + uint8_t nick_len; uint16_t peer_number; } Group_Peer;