mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
Code cleanup
This commit is contained in:
parent
b67dac56e3
commit
fa17536598
@ -29,7 +29,6 @@ typedef struct
|
|||||||
GMainLoop *loop;
|
GMainLoop *loop;
|
||||||
gint step;
|
gint step;
|
||||||
GList *events;
|
GList *events;
|
||||||
GString *output;
|
|
||||||
} TestData;
|
} TestData;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@ -194,7 +193,6 @@ test_atomic_replace (void)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
TestData data;
|
TestData data;
|
||||||
|
|
||||||
data.output = g_string_new ("");
|
|
||||||
data.step = 0;
|
data.step = 0;
|
||||||
data.events = NULL;
|
data.events = NULL;
|
||||||
|
|
||||||
@ -220,7 +218,6 @@ test_atomic_replace (void)
|
|||||||
g_main_loop_unref (data.loop);
|
g_main_loop_unref (data.loop);
|
||||||
g_object_unref (data.monitor);
|
g_object_unref (data.monitor);
|
||||||
g_object_unref (data.file);
|
g_object_unref (data.file);
|
||||||
g_string_free (data.output, TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -295,7 +292,6 @@ test_file_changes (void)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
TestData data;
|
TestData data;
|
||||||
|
|
||||||
data.output = g_string_new ("");
|
|
||||||
data.step = 0;
|
data.step = 0;
|
||||||
data.events = NULL;
|
data.events = NULL;
|
||||||
|
|
||||||
@ -321,7 +317,6 @@ test_file_changes (void)
|
|||||||
g_main_loop_unref (data.loop);
|
g_main_loop_unref (data.loop);
|
||||||
g_object_unref (data.monitor);
|
g_object_unref (data.monitor);
|
||||||
g_object_unref (data.file);
|
g_object_unref (data.file);
|
||||||
g_string_free (data.output, TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -409,7 +404,6 @@ test_dir_monitor (void)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
TestData data;
|
TestData data;
|
||||||
|
|
||||||
data.output = g_string_new ("");
|
|
||||||
data.step = 0;
|
data.step = 0;
|
||||||
data.events = NULL;
|
data.events = NULL;
|
||||||
|
|
||||||
@ -436,7 +430,6 @@ test_dir_monitor (void)
|
|||||||
g_main_loop_unref (data.loop);
|
g_main_loop_unref (data.loop);
|
||||||
g_object_unref (data.monitor);
|
g_object_unref (data.monitor);
|
||||||
g_object_unref (data.file);
|
g_object_unref (data.file);
|
||||||
g_string_free (data.output, TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -503,7 +496,6 @@ test_dir_non_existent (void)
|
|||||||
TestData data;
|
TestData data;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
data.output = g_string_new ("");
|
|
||||||
data.step = 0;
|
data.step = 0;
|
||||||
data.events = NULL;
|
data.events = NULL;
|
||||||
|
|
||||||
@ -530,7 +522,6 @@ test_dir_non_existent (void)
|
|||||||
g_main_loop_unref (data.loop);
|
g_main_loop_unref (data.loop);
|
||||||
g_object_unref (data.monitor);
|
g_object_unref (data.monitor);
|
||||||
g_object_unref (data.file);
|
g_object_unref (data.file);
|
||||||
g_string_free (data.output, TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -609,7 +600,6 @@ test_cross_dir_moves (void)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
TestData data[2];
|
TestData data[2];
|
||||||
|
|
||||||
data[0].output = g_string_new ("");
|
|
||||||
data[0].step = 0;
|
data[0].step = 0;
|
||||||
data[0].events = NULL;
|
data[0].events = NULL;
|
||||||
|
|
||||||
@ -623,7 +613,6 @@ test_cross_dir_moves (void)
|
|||||||
g_file_monitor_set_rate_limit (data[0].monitor, 200);
|
g_file_monitor_set_rate_limit (data[0].monitor, 200);
|
||||||
g_signal_connect (data[0].monitor, "changed", G_CALLBACK (monitor_changed), &data[0]);
|
g_signal_connect (data[0].monitor, "changed", G_CALLBACK (monitor_changed), &data[0]);
|
||||||
|
|
||||||
data[1].output = g_string_new ("");
|
|
||||||
data[1].step = 0;
|
data[1].step = 0;
|
||||||
data[1].events = NULL;
|
data[1].events = NULL;
|
||||||
|
|
||||||
@ -657,12 +646,10 @@ test_cross_dir_moves (void)
|
|||||||
g_main_loop_unref (data[0].loop);
|
g_main_loop_unref (data[0].loop);
|
||||||
g_object_unref (data[0].monitor);
|
g_object_unref (data[0].monitor);
|
||||||
g_object_unref (data[0].file);
|
g_object_unref (data[0].file);
|
||||||
g_string_free (data[0].output, TRUE);
|
|
||||||
|
|
||||||
g_list_free_full (data[1].events, (GDestroyNotify)free_recorded_event);
|
g_list_free_full (data[1].events, (GDestroyNotify)free_recorded_event);
|
||||||
g_object_unref (data[1].monitor);
|
g_object_unref (data[1].monitor);
|
||||||
g_object_unref (data[1].file);
|
g_object_unref (data[1].file);
|
||||||
g_string_free (data[1].output, TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user