diff options
Diffstat (limited to 'libslab/bookmark-agent.c')
-rw-r--r-- | libslab/bookmark-agent.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libslab/bookmark-agent.c b/libslab/bookmark-agent.c index b37616ff..31834bd1 100644 --- a/libslab/bookmark-agent.c +++ b/libslab/bookmark-agent.c @@ -245,7 +245,6 @@ bookmark_agent_remove_item (BookmarkAgent *this, const gchar *uri) gint rank_i; gint i; - g_return_if_fail (priv->user_modifiable); if (! bookmark_agent_has_item (this, uri)) @@ -287,7 +286,6 @@ bookmark_agent_reorder_items (BookmarkAgent *this, const gchar **uris) gint i; - g_return_if_fail (priv->reorderable); for (i = 0; uris && uris [i]; ++i) @@ -578,7 +576,6 @@ get_property (GObject *g_obj, guint prop_id, GValue *value, GParamSpec *pspec) BookmarkAgent *this = BOOKMARK_AGENT (g_obj); BookmarkAgentPrivate *priv = bookmark_agent_get_instance_private (this); - switch (prop_id) { case PROP_ITEMS: g_value_set_pointer (value, priv->items); @@ -604,7 +601,6 @@ finalize (GObject *g_obj) gint i; - for (i = 0; priv->items && priv->items [i]; ++i) bookmark_item_free (priv->items [i]); @@ -666,7 +662,6 @@ update_items (BookmarkAgent *this) gint i; - uris = g_bookmark_file_get_uris (priv->store, & n_uris); uris_ordered = g_new0 (gchar *, n_uris + 1); uris_ordered [n_uris] = NULL; @@ -762,7 +757,6 @@ save_store (BookmarkAgent *this) gchar *dir; - g_return_if_fail (priv->user_modifiable); priv->needs_sync = TRUE; @@ -786,7 +780,6 @@ get_rank (BookmarkAgent *this, const gchar *uri) gint i; - if (! priv->reorderable) return -1; @@ -819,7 +812,6 @@ set_rank (BookmarkAgent *this, const gchar *uri, gint rank) gint i; - if (! (priv->reorderable && bookmark_agent_has_item (this, uri))) return; @@ -944,7 +936,6 @@ find_package_data_file (const gchar *filename) gchar *path = NULL; gint i; - dirs = g_get_system_data_dirs (); for (i = 0; ! path && dirs && dirs [i]; ++i) { |