diff options
author | lukefromdc <[email protected]> | 2020-03-04 23:52:46 -0500 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2020-03-06 09:38:10 +0100 |
commit | 4fb95482ae8f3b3697a9f4134869bb1c4a3c10ae (patch) | |
tree | 1fd51a3fd4d7f7021d8877e08685f6545abbd6ce /libcaja-private/caja-undostack-manager.c | |
parent | 4e07c3562c4c094e9b943c75524a94150859c9b4 (diff) | |
download | caja-4fb95482ae8f3b3697a9f4134869bb1c4a3c10ae.tar.bz2 caja-4fb95482ae8f3b3697a9f4134869bb1c4a3c10ae.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), |