From 4fb95482ae8f3b3697a9f4134869bb1c4a3c10ae Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Wed, 4 Mar 2020 23:52:46 -0500 Subject: 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 --- libcaja-private/caja-undostack-manager.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'libcaja-private/caja-undostack-manager.c') 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), -- cgit v1.2.1