From d43882b38f3c7c1981d37e6bc84a07fe4c7e3dbc Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 27 Jan 2024 16:09:33 +0100 Subject: [PATCH] removed old useless testing code --- src/chat/misc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index 88f14c1..69008ec 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -381,10 +381,6 @@ void *why2_communicate_thread(void *arg) if (raw[i] == '\\') raw[i] = '/'; } - received = read_socket_from_raw(raw); - - if (received == NULL) break; //FAILED; EXIT THREAD - decoded_buffer = get_string_from_json_string(raw, "message"); //DECODE if (decoded_buffer[0] == '!') //COMMANDS @@ -405,7 +401,6 @@ void *why2_communicate_thread(void *arg) deallocation: - why2_deallocate(received); why2_deallocate(raw); why2_deallocate(raw_ptr); why2_deallocate(decoded_buffer); @@ -416,7 +411,6 @@ void *why2_communicate_thread(void *arg) printf("User disconnected.\t%d\n", connection); //DEALLOCATION - why2_deallocate(received); close(connection); why2_list_remove(&connection_list, find_connection(connection));