[nautilus-sendto] main: Remove useless code
- From: hadess src gnome org
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] main: Remove useless code
- Date: Wed, 2 Feb 2011 13:32:09 +0000 (UTC)
commit 45cb0cfa1e946d36125668e2e30f4f3e715bb5f5
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 2 13:31:21 2011 +0000
main: Remove useless code
The search path handling is now cleaner.
src/nautilus-sendto-command.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-sendto-command.c b/src/nautilus-sendto-command.c
index 1fd4668..50b650c 100644
--- a/src/nautilus-sendto-command.c
+++ b/src/nautilus-sendto-command.c
@@ -506,8 +506,7 @@ nautilus_sendto_plugin_load_all (void)
static gboolean
nautilus_sendto_plugin_init (NautilusSendto *nst)
{
- GPtrArray *search_paths;
- char **paths, *user_dir;
+ char *user_dir;
if (g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, NULL) == NULL) {
g_warning ("Failed to load Peas bindings");
@@ -520,13 +519,7 @@ nautilus_sendto_plugin_init (NautilusSendto *nst)
return FALSE;
}
- search_paths = g_ptr_array_new ();
-
- /* Terminate array */
- g_ptr_array_add (search_paths, NULL);
-
/* Init engine */
- paths = (char **) g_ptr_array_free (search_paths, FALSE);
engine = peas_engine_get_default ();
/* Add uninstalled plugins */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]