diff options
author | lukefromdc <[email protected]> | 2020-03-04 23:52:46 -0500 |
---|---|---|
committer | rbuj <[email protected]> | 2020-03-06 09:39:58 +0100 |
commit | 10fe0da1627212ff12a527cf4ab831014343bab7 (patch) | |
tree | 94ab9edde9125ed39db944a9d0cee6528891f8bf /libcaja-private/caja-undostack-manager.c | |
parent | 442c061e77cc9d933f73f19f286764cdad68dd8f (diff) | |
download | caja-10fe0da1627212ff12a527cf4ab831014343bab7.tar.bz2 caja-10fe0da1627212ff12a527cf4ab831014343bab7.tar.xz |
fix runtime warning from newly unused code
Remove now unused confirm_delete property
Fix warning "caja-undostack-manager.c:323: invalid property id 2 for "confirm-delete" of type 'GParamBoolean' in 'CajaUndoStackManager' " caused by newly unused property
Diffstat (limited to 'libcaja-private/caja-undostack-manager.c')
-rw-r--r-- | libcaja-private/caja-undostack-manager.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libcaja-private/caja-undostack-manager.c b/libcaja-private/caja-undostack-manager.c index ddc22b34..281736e3 100644 --- a/libcaja-private/caja-undostack-manager.c +++ b/libcaja-private/caja-undostack-manager.c @@ -109,7 +109,7 @@ struct _CajaUndoStackManagerPrivate ***************************************************************** */ enum { - PROP_UNDOSTACK_MANAGER_0, PROP_UNDO_LEVELS, PROP_CONFIRM_DELETE + PROP_UNDOSTACK_MANAGER_0, PROP_UNDO_LEVELS }; static void caja_undostack_manager_set_property (GObject * object, @@ -212,7 +212,6 @@ static void caja_undostack_manager_class_init (CajaUndoStackManagerClass * klass) { GParamSpec *undo_levels; - GParamSpec *confirm_delete; GObjectClass *g_object_class; /* Create properties */ @@ -220,11 +219,6 @@ caja_undostack_manager_class_init (CajaUndoStackManagerClass * klass) "Number of undo levels to be stored", 1, UINT_MAX, 30, G_PARAM_READWRITE | G_PARAM_CONSTRUCT); - confirm_delete = - g_param_spec_boolean ("confirm-delete", "confirm delete", - "Always confirm file deletion", FALSE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT); - /* Set properties get/set methods */ g_object_class = G_OBJECT_CLASS (klass); @@ -235,9 +229,6 @@ caja_undostack_manager_class_init (CajaUndoStackManagerClass * klass) g_object_class_install_property (g_object_class, PROP_UNDO_LEVELS, undo_levels); - g_object_class_install_property (g_object_class, PROP_CONFIRM_DELETE, - confirm_delete); - /* The UI menu needs to update its status */ g_signal_new ("request-menu-update", G_TYPE_FROM_CLASS (klass), |