summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2020-03-04 23:52:46 -0500
committerraveit65 <[email protected]>2022-07-20 23:37:20 +0200
commit9e7ac6c168b0161c0da8c93423c29e22c938cc5e (patch)
tree2ecb36b63255c750128e89c299902c64c3dc69eb /libcaja-private
parent73bd964976481cd597b7d1fda6d455179f184187 (diff)
downloadcaja-9e7ac6c168b0161c0da8c93423c29e22c938cc5e.tar.bz2
caja-9e7ac6c168b0161c0da8c93423c29e22c938cc5e.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')
-rw-r--r--libcaja-private/caja-undostack-manager.c11
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),