From 85f9c1241c62f97db09174bcb651aaf503e641e7 Mon Sep 17 00:00:00 2001 From: jfreegman Date: Fri, 12 Nov 2021 10:15:47 -0500 Subject: [PATCH] Remove some unnecessary code --- src/global_commands.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/global_commands.c b/src/global_commands.c index c4a2b79..ec4b357 100644 --- a/src/global_commands.c +++ b/src/global_commands.c @@ -482,13 +482,7 @@ void cmd_groupchat(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*arg char name[TOX_GROUP_MAX_GROUP_NAME_LENGTH]; - if (argv[1][0] == '\"') { /* remove opening and closing quotes */ - snprintf(name, sizeof(name), "%s", &argv[1][1]); - len -= 2; - name[len] = '\0'; - } else { - snprintf(name, sizeof(name), "%s", argv[1]); - } + snprintf(name, sizeof(name), "%s", argv[1]); size_t nick_length = tox_self_get_name_size(m); char self_nick[TOX_MAX_NAME_LENGTH + 1];