[nautilus] eel-debug: remove unused code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel-debug: remove unused code
- Date: Thu, 2 Dec 2010 13:31:29 +0000 (UTC)
commit a440c05ceebdbfc21c8e585087574c7827e5f1f2
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Dec 2 14:30:26 2010 +0100
eel-debug: remove unused code
eel/eel-debug.c | 27 +--------------------------
eel/eel-debug.h | 2 --
2 files changed, 1 insertions(+), 28 deletions(-)
---
diff --git a/eel/eel-debug.c b/eel/eel-debug.c
index ecd000f..e49d4ff 100644
--- a/eel/eel-debug.c
+++ b/eel/eel-debug.c
@@ -40,7 +40,7 @@ static GList *shutdown_functions;
* When not running under the debugger, we don't want to stop,
* so we ignore the signal for just the moment that we raise it.
*/
-void
+static void
eel_stop_in_debugger (void)
{
void (* saved_handler) (int);
@@ -72,31 +72,6 @@ eel_make_warnings_and_criticals_stop_in_debugger (void)
g_log_set_default_handler (log_handler, NULL);
}
-int
-eel_get_available_file_descriptor_count (void)
-{
- int count;
- GList *list;
- GList *p;
- FILE *file;
-
- list = NULL;
- for (count = 0; ; count++) {
- file = fopen ("/dev/null", "r");
- if (file == NULL) {
- break;
- }
- list = g_list_prepend (list, file);
- }
-
- for (p = list; p != NULL; p = p->next) {
- fclose (p->data);
- }
- g_list_free (list);
-
- return count;
-}
-
void
eel_debug_shut_down (void)
{
diff --git a/eel/eel-debug.h b/eel/eel-debug.h
index fdd5ca3..52a0d64 100644
--- a/eel/eel-debug.h
+++ b/eel/eel-debug.h
@@ -31,9 +31,7 @@ G_BEGIN_DECLS
typedef void (* EelFunction) (void);
-void eel_stop_in_debugger (void);
void eel_make_warnings_and_criticals_stop_in_debugger (void);
-int eel_get_available_file_descriptor_count (void);
/* A way to do cleanup at exit for compatibility with shutdown tools
* like the ones in Bonobo.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]