diff options
author | dx <dx@dxzone.com.ar> | 2015-09-20 16:49:48 -0300 |
---|---|---|
committer | dx <dx@dxzone.com.ar> | 2015-09-20 16:49:48 -0300 |
commit | 9cf4dfd23d10e735d43f7e7355fe718f2a7995cb (patch) | |
tree | 1ffa084e631528eee558a9954b3e1b1d1e185c1d /src | |
parent | 519955ebe4a421e8027c3dd09af9ea76d949d259 (diff) | |
parent | 29cf546ee4d5c1af1042d6fbeaae150ecc545d4a (diff) | |
download | irssi-9cf4dfd23d10e735d43f7e7355fe718f2a7995cb.zip |
Merge pull request #288 from irssi/ahf/kill-gc
Remove Garbage Collection support.
Diffstat (limited to 'src')
-rw-r--r-- | src/common.h | 4 | ||||
-rw-r--r-- | src/fe-text/irssi.c | 23 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/common.h b/src/common.h index 1b99753b..e9073925 100644 --- a/src/common.h +++ b/src/common.h @@ -56,10 +56,6 @@ #define g_strcmp0(a, b) (!a ? -(a != b) : (!b ? (a != b) : strcmp(a, b))) #endif -#ifdef USE_GC -# define g_free(x) G_STMT_START { (x) = NULL; } G_STMT_END -#endif - #if defined (UOFF_T_INT) typedef unsigned int uoff_t; #elif defined (UOFF_T_LONG) diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 6d5b9b13..b1fa5e22 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -286,22 +286,6 @@ static void winsock_init(void) } #endif -#ifdef USE_GC -#ifdef HAVE_GC_H -# include <gc.h> -#else -# include <gc/gc.h> -#endif - -GMemVTable gc_mem_table = { - GC_malloc, - GC_realloc, - GC_free, - - NULL, NULL, NULL -}; -#endif - int main(int argc, char **argv) { static int version = 0; @@ -312,10 +296,6 @@ int main(int argc, char **argv) }; int loglev; -#ifdef USE_GC - g_mem_set_vtable(&gc_mem_table); -#endif - core_register_options(); fe_common_core_register_options(); args_register(options); @@ -369,9 +349,6 @@ int main(int argc, char **argv) /* Does the same as g_main_run(main_loop), except we can call our dirty-checker after each iteration */ while (!quitting) { -#ifdef USE_GC - GC_collect_a_little(); -#endif if (!dummy) term_refresh_freeze(); g_main_iteration(TRUE); if (!dummy) term_refresh_thaw(); |