summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2022-11-23 20:51:37 +0100
committerLuke from DC <[email protected]>2022-12-23 10:59:22 +0000
commit288237a1c1681f71b2c5273e73bc56c5133edfa0 (patch)
tree29ebc54acbaab64ca11dc0882ae36d282e8b2328 /libcaja-private
parent3fcbd04496251b6c11740793412375c82cdd3d3c (diff)
downloadcaja-288237a1c1681f71b2c5273e73bc56c5133edfa0.tar.bz2
caja-288237a1c1681f71b2c5273e73bc56c5133edfa0.tar.xz
Remove unused members and structures
Based on a cppcheck report: https://caja.mate-desktop.dev/2022-11-23-174623-5790-cppcheck@ae663c369cf2_desktop-no-overflow/
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-mime-application-chooser.c1
-rw-r--r--libcaja-private/caja-search-directory-file.c5
-rw-r--r--libcaja-private/caja-search-directory-file.h3
-rw-r--r--libcaja-private/caja-search-directory.c1
-rw-r--r--libcaja-private/caja-search-engine-simple.c1
-rw-r--r--libcaja-private/caja-search-engine.c27
-rw-r--r--libcaja-private/caja-search-engine.h3
7 files changed, 0 insertions, 41 deletions
diff --git a/libcaja-private/caja-mime-application-chooser.c b/libcaja-private/caja-mime-application-chooser.c
index ab9b8026..e461fb65 100644
--- a/libcaja-private/caja-mime-application-chooser.c
+++ b/libcaja-private/caja-mime-application-chooser.c
@@ -52,7 +52,6 @@ struct _CajaMimeApplicationChooserDetails
guint refresh_timeout;
GtkWidget *label;
- GtkWidget *entry;
GtkWidget *treeview;
GtkWidget *remove_button;
diff --git a/libcaja-private/caja-search-directory-file.c b/libcaja-private/caja-search-directory-file.c
index 0984caf6..550d7702 100644
--- a/libcaja-private/caja-search-directory-file.c
+++ b/libcaja-private/caja-search-directory-file.c
@@ -39,11 +39,6 @@
#include "caja-file-utilities.h"
#include "caja-search-directory.h"
-struct CajaSearchDirectoryFileDetails
-{
- CajaSearchDirectory *search_directory;
-};
-
G_DEFINE_TYPE(CajaSearchDirectoryFile, caja_search_directory_file, CAJA_TYPE_FILE);
static void
diff --git a/libcaja-private/caja-search-directory-file.h b/libcaja-private/caja-search-directory-file.h
index ac6a8d0d..d0be816d 100644
--- a/libcaja-private/caja-search-directory-file.h
+++ b/libcaja-private/caja-search-directory-file.h
@@ -40,12 +40,9 @@
#define CAJA_SEARCH_DIRECTORY_FILE_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), CAJA_TYPE_SEARCH_DIRECTORY_FILE, CajaSearchDirectoryFileClass))
-typedef struct CajaSearchDirectoryFileDetails CajaSearchDirectoryFileDetails;
-
typedef struct
{
CajaFile parent_slot;
- CajaSearchDirectoryFileDetails *details;
} CajaSearchDirectoryFile;
typedef struct
diff --git a/libcaja-private/caja-search-directory.c b/libcaja-private/caja-search-directory.c
index 4613b564..da2e133b 100644
--- a/libcaja-private/caja-search-directory.c
+++ b/libcaja-private/caja-search-directory.c
@@ -49,7 +49,6 @@ struct CajaSearchDirectoryDetails
gboolean search_finished;
GList *files;
- GHashTable *file_hash;
GList *monitor_list;
GList *callback_list;
diff --git a/libcaja-private/caja-search-engine-simple.c b/libcaja-private/caja-search-engine-simple.c
index 207baeaa..aae74d23 100644
--- a/libcaja-private/caja-search-engine-simple.c
+++ b/libcaja-private/caja-search-engine-simple.c
@@ -42,7 +42,6 @@ typedef struct
GList *mime_types;
GList *tags;
char **words;
- GList *found_list;
GQueue *directories; /* GFiles */
diff --git a/libcaja-private/caja-search-engine.c b/libcaja-private/caja-search-engine.c
index 234575de..d8d9d9a8 100644
--- a/libcaja-private/caja-search-engine.c
+++ b/libcaja-private/caja-search-engine.c
@@ -30,11 +30,6 @@
#include "caja-search-engine-simple.h"
#include "caja-search-engine-tracker.h"
-struct CajaSearchEngineDetails
-{
- int none;
-};
-
enum
{
HITS_ADDED,
@@ -50,30 +45,9 @@ G_DEFINE_ABSTRACT_TYPE (CajaSearchEngine,
caja_search_engine,
G_TYPE_OBJECT);
-static GObjectClass *parent_class = NULL;
-
-static void
-finalize (GObject *object)
-{
- CajaSearchEngine *engine;
-
- engine = CAJA_SEARCH_ENGINE (object);
-
- g_free (engine->details);
-
- EEL_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
-}
-
static void
caja_search_engine_class_init (CajaSearchEngineClass *class)
{
- GObjectClass *gobject_class;
-
- parent_class = g_type_class_peek_parent (class);
-
- gobject_class = G_OBJECT_CLASS (class);
- gobject_class->finalize = finalize;
-
signals[HITS_ADDED] =
g_signal_new ("hits-added",
G_TYPE_FROM_CLASS (class),
@@ -118,7 +92,6 @@ caja_search_engine_class_init (CajaSearchEngineClass *class)
static void
caja_search_engine_init (CajaSearchEngine *engine)
{
- engine->details = g_new0 (CajaSearchEngineDetails, 1);
}
CajaSearchEngine *
diff --git a/libcaja-private/caja-search-engine.h b/libcaja-private/caja-search-engine.h
index 3d811ff4..90bd6593 100644
--- a/libcaja-private/caja-search-engine.h
+++ b/libcaja-private/caja-search-engine.h
@@ -35,12 +35,9 @@
#define CAJA_IS_SEARCH_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAJA_TYPE_SEARCH_ENGINE))
#define CAJA_SEARCH_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAJA_TYPE_SEARCH_ENGINE, CajaSearchEngineClass))
-typedef struct CajaSearchEngineDetails CajaSearchEngineDetails;
-
typedef struct CajaSearchEngine
{
GObject parent;
- CajaSearchEngineDetails *details;
} CajaSearchEngine;
typedef struct