summaryrefslogtreecommitdiff
path: root/libslab/bookmark-agent.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 17:23:33 +0200
committerraveit65 <[email protected]>2021-11-20 21:45:51 +0100
commit17ccb4f4bd610252e4ea600546750ddcc09c855a (patch)
treee1cc1783e0d46cb80c52d2a40b748925141f25ee /libslab/bookmark-agent.c
parent9d702031671fa8aa4cdf6ea512b3f59b8ea3da37 (diff)
downloadmate-control-center-17ccb4f4bd610252e4ea600546750ddcc09c855a.tar.bz2
mate-control-center-17ccb4f4bd610252e4ea600546750ddcc09c855a.tar.xz
Use a blank line at most
Diffstat (limited to 'libslab/bookmark-agent.c')
-rw-r--r--libslab/bookmark-agent.c9
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) {