speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Remove unused variable in ibmtts


From: José Vilmar Estácio de Souza
Subject: [PATCH] Remove unused variable in ibmtts
Date: Mon, 8 Nov 2010 20:58:37 -0200

In the function module_init the variable info is declared, allocated
but not used.

This patch removes the variable and also remove the macro ABORT.
---
 src/modules/ibmtts.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/modules/ibmtts.c b/src/modules/ibmtts.c
index 3984dee..e353934 100644
--- a/src/modules/ibmtts.c
+++ b/src/modules/ibmtts.c
@@ -396,17 +396,10 @@ module_load(void)
     return OK;
 }
 
-#define ABORT(msg) g_string_append(info, msg); \
-        DBG("FATAL ERROR: %s", info->str); \
-        *status_info = info->str; \
-        g_string_free(info, 0); \
-        return FATAL_ERROR;
-
 int
 module_init(char **status_info)
 {
     int ret;
-    GString *info;
     char ibmVersion[20];
     int ibm_sample_rate;
 
@@ -414,7 +407,6 @@ module_init(char **status_info)
     INIT_INDEX_MARKING();
 
     *status_info = NULL;
-    info = g_string_new("");
     ibmtts_thread_exit_requested = IBMTTS_FALSE;
 
     /* Report versions. */
@@ -534,11 +526,9 @@ module_init(char **status_info)
     module_audio_id = NULL;
 
     *status_info = g_strdup("Ibmtts: Initialized successfully.");
-    g_string_free(info, 1);
 
     return OK;
 }
-#undef ABORT
 
 
 int
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]