From 5948d1da01f77849354652c5be0197a31acf6a31 Mon Sep 17 00:00:00 2001 From: ketmar Date: Fri, 15 Mar 2013 06:03:07 +0200 Subject: [PATCH] removed unused code --- src/termswitch.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/termswitch.c b/src/termswitch.c index 07f0614..4b756ca 100644 --- a/src/termswitch.c +++ b/src/termswitch.c @@ -49,29 +49,6 @@ static void fixWindowTitle (const K8Term *t) { } -static void fixProgramInfo (K8Term *t) { - if (t != NULL && t->cmdfd >= 0) { - const char *pname; - // - if ((pname = get_process_name(t->cmdfd)) != NULL) { - const char *ppath; - // - if (K8T_DATA(t)->lastpname) free(K8T_DATA(t)->lastpname); - K8T_DATA(t)->lastpname = strdup(pname); - // - if ((ppath = get_process_cwd(t->cmdfd)) != NULL) { - if (K8T_DATA(t)->lastppath != NULL) free(K8T_DATA(t)->lastppath); - K8T_DATA(t)->lastppath = strdup(ppath); - } - } - K8T_DATA(t)->titleset = 0; - if (t == curterm) fixWindowTitle(t); - updateTabBar = 1; - //fprintf(stderr, "title fixed!\n"); - } -} - - static void checkAndFixWindowTitle (K8Term *t, int forceupd) { if (t != NULL && t->cmdfd >= 0) { const char *pname, *ppath; -- 2.11.4.GIT