removed why2_register_connection function

This commit is contained in:
Václav Šmejkal 2023-02-22 10:01:03 +01:00
parent fbaef61ebc
commit 736cd82240
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59
2 changed files with 1 additions and 7 deletions

View File

@ -22,7 +22,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
void why2_send_socket(char *text, int socket); //send socket.... wtf did you expect
char *why2_read_socket(int socket); //read lol
void *why2_communicate_thread(void *arg); //COMMUNICATION THREAD
void why2_register_connection(int socket); //ADD SOCKET TO LIST
void *why2_accept_thread(void *socket); //LOOP ACCEPTING CONNECTIONS
#endif

View File

@ -130,7 +130,7 @@ void *why2_communicate_thread(void *arg)
{
printf("User connected.\t%d\n", *((int*) arg));
why2_register_connection(*((int*) arg)); //TODO: Remove why2_register_connection if unused
push_to_list(*((int*) arg));
const time_t startTime = time(NULL);
char *received = NULL;
@ -185,11 +185,6 @@ char *why2_read_socket(int socket)
return content_buffer;
}
void why2_register_connection(int socket)
{
push_to_list(socket); //SEND
}
void *why2_accept_thread(void *socket)
{
int accepted;