From a4cea7f8d6045f15c9e2cfb958f43c91fbdd18b2 Mon Sep 17 00:00:00 2001 From: Aharon Hillel Date: Mon, 18 Jun 2012 07:23:07 +0000 Subject: [PATCH] clouseau: Removed _titlebar_string_set() duplicated func code Signed-off-by: Aharon Hillel SVN revision: 72352 --- src/bin/clouseau.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/bin/clouseau.c b/src/bin/clouseau.c index 3b7b961..36589ff 100644 --- a/src/bin/clouseau.c +++ b/src/bin/clouseau.c @@ -76,25 +76,6 @@ _titlebar_string_set(gui_elements *g, Eina_Bool online) } } -static void -_titlebar_string_set(gui_elements *g, Eina_Bool online) -{ - if (online) - { - char *str = malloc(strlen(CLIENT_NAME) + strlen(g->address) + 32); - sprintf(str, "%s - %s", CLIENT_NAME, g->address); - elm_win_title_set(g->win, str); - free(str); - } - else - { - char *str = malloc(strlen(CLIENT_NAME) + 32); - sprintf(str, "%s - Offline", CLIENT_NAME); - elm_win_title_set(g->win, str); - free(str); - } -} - Eina_Bool _add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Ipc_Event_Server_Add *ev) {