summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-08-12 01:41:09 +0200
committerraveit65 <[email protected]>2022-07-21 19:33:49 +0200
commita5ce9aa44e916bb093a635e5b48f65435deca2ff (patch)
treeca389c1fa3c6ea9d7ee997179aaab56dd16a1378 /src
parent88f198c09524a4c78744177fcafac2d82b741d6e (diff)
downloadcaja-a5ce9aa44e916bb093a635e5b48f65435deca2ff.tar.bz2
caja-a5ce9aa44e916bb093a635e5b48f65435deca2ff.tar.xz
Remove unused macros
Diffstat (limited to 'src')
-rw-r--r--src/caja-bookmarks-sidebar.c6
-rw-r--r--src/caja-file-management-properties.c1
-rw-r--r--src/caja-history-sidebar.c7
-rw-r--r--src/caja-places-sidebar.c2
-rw-r--r--src/caja-sidebar-title.c1
-rw-r--r--src/caja-trash-bar.c3
-rw-r--r--src/file-manager/fm-icon-container.c3
-rw-r--r--src/file-manager/fm-list-model.c3
-rw-r--r--src/file-manager/fm-list-view.c7
9 files changed, 0 insertions, 33 deletions
diff --git a/src/caja-bookmarks-sidebar.c b/src/caja-bookmarks-sidebar.c
index 90ff27c9..2ab9c6d6 100644
--- a/src/caja-bookmarks-sidebar.c
+++ b/src/caja-bookmarks-sidebar.c
@@ -50,12 +50,6 @@
#include "caja-bookmarks-sidebar.h"
-#define CAJA_BOOKMARKS_SIDEBAR_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), CAJA_TYPE_BOOKMARKS_SIDEBAR, CajaBookmarksSidebarClass))
-#define CAJA_IS_BOOKMARKS_SIDEBAR(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAJA_TYPE_BOOKMARKS_SIDEBAR))
-#define CAJA_IS_BOOKMARKS_SIDEBAR_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), CAJA_TYPE_BOOKMARKS_SIDEBAR))
typedef struct
{
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c
index 93a98677..b9c8d1d4 100644
--- a/src/caja-file-management-properties.c
+++ b/src/caja-file-management-properties.c
@@ -63,7 +63,6 @@
#define CAJA_FILE_MANAGEMENT_PROPERTIES_LABELS_BESIDE_ICONS_WIDGET "labels_beside_icons_checkbutton"
#define CAJA_FILE_MANAGEMENT_PROPERTIES_ALL_COLUMNS_SAME_WIDTH "all_columns_same_width_checkbutton"
#define CAJA_FILE_MANAGEMENT_PROPERTIES_ALWAYS_USE_BROWSER_WIDGET "always_use_browser_checkbutton"
-#define CAJA_FILE_MANAGEMENT_PROPERTIES_ALWAYS_USE_LOCATION_ENTRY_WIDGET "always_use_location_entry_checkbutton"
#define CAJA_FILE_MANAGEMENT_PROPERTIES_TRASH_CONFIRM_WIDGET "trash_confirm_checkbutton"
#define CAJA_FILE_MANAGEMENT_PROPERTIES_TRASH_CONFIRM_TRASH_WIDGET "trash_confirm_trash_checkbutton"
#define CAJA_FILE_MANAGEMENT_PROPERTIES_TRASH_DELETE_WIDGET "trash_delete_checkbutton"
diff --git a/src/caja-history-sidebar.c b/src/caja-history-sidebar.c
index 781008b1..f48d11c2 100644
--- a/src/caja-history-sidebar.c
+++ b/src/caja-history-sidebar.c
@@ -43,13 +43,6 @@
#include "caja-history-sidebar.h"
-#define CAJA_HISTORY_SIDEBAR_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), CAJA_TYPE_HISTORY_SIDEBAR, CajaHistorySidebarClass))
-#define CAJA_IS_HISTORY_SIDEBAR(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAJA_TYPE_HISTORY_SIDEBAR))
-#define CAJA_IS_HISTORY_SIDEBAR_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), CAJA_TYPE_HISTORY_SIDEBAR))
-
typedef struct
{
GtkScrolledWindowClass parent;
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index be9b4c85..7c9bc8dc 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -58,7 +58,6 @@
#include "caja-window.h"
#define EJECT_BUTTON_XPAD 6
-#define ICON_CELL_XPAD 6
typedef struct
{
@@ -209,7 +208,6 @@ typedef struct
} CajaShortcutsModelFilterClass;
#define CAJA_SHORTCUTS_MODEL_FILTER_TYPE (_caja_shortcuts_model_filter_get_type ())
-#define CAJA_SHORTCUTS_MODEL_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAJA_SHORTCUTS_MODEL_FILTER_TYPE, CajaShortcutsModelFilter))
GType _caja_shortcuts_model_filter_get_type (void);
static void caja_shortcuts_model_filter_drag_source_iface_init (GtkTreeDragSourceIface *iface);
diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c
index 6d3f011e..5fe42fc4 100644
--- a/src/caja-sidebar-title.c
+++ b/src/caja-sidebar-title.c
@@ -52,7 +52,6 @@
#define MINIMUM_INFO_WIDTH 32
#define SIDEBAR_INFO_MARGIN 4
-#define MORE_INFO_FONT_SIZE 12
#define MIN_TITLE_FONT_SIZE 12
#define TITLE_PADDING 4
diff --git a/src/caja-trash-bar.c b/src/caja-trash-bar.c
index bcff94ae..b896bcc7 100644
--- a/src/caja-trash-bar.c
+++ b/src/caja-trash-bar.c
@@ -33,9 +33,6 @@
#include "caja-trash-bar.h"
#include "caja-window.h"
-#define CAJA_TRASH_BAR_GET_PRIVATE(o)\
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), CAJA_TYPE_TRASH_BAR, CajaTrashBarPrivate))
-
enum
{
PROP_WINDOW = 1,
diff --git a/src/file-manager/fm-icon-container.c b/src/file-manager/fm-icon-container.c
index dc5fd59a..0188f3f1 100644
--- a/src/file-manager/fm-icon-container.c
+++ b/src/file-manager/fm-icon-container.c
@@ -36,9 +36,6 @@
#include "fm-icon-container.h"
-#define ICON_TEXT_ATTRIBUTES_NUM_ITEMS 3
-#define ICON_TEXT_ATTRIBUTES_DEFAULT_TOKENS "size,date_modified,type"
-
G_DEFINE_TYPE (FMIconContainer, fm_icon_container, CAJA_TYPE_ICON_CONTAINER);
static GQuark attribute_none_q;
diff --git a/src/file-manager/fm-list-model.c b/src/file-manager/fm-list-model.c
index fae87a1e..3c795472 100644
--- a/src/file-manager/fm-list-model.c
+++ b/src/file-manager/fm-list-model.c
@@ -52,9 +52,6 @@ static GQuark attribute_name_q,
attribute_modification_date_q,
attribute_date_modified_q;
-/* msec delay after Loading... dummy row turns into (empty) */
-#define LOADING_TO_EMPTY_DELAY 100
-
static guint list_model_signals[LAST_SIGNAL] = { 0 };
static int fm_list_model_file_entry_compare_func (gconstpointer a,
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index 396f2d82..c3980b90 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -122,13 +122,6 @@ struct SelectionForeachData
GtkTreeSelection *selection;
};
-/*
- * The row height should be large enough to not clip emblems.
- * Computing this would be costly, so we just choose a number
- * that works well with the set of emblems we've designed.
- */
-#define LIST_VIEW_MINIMUM_ROW_HEIGHT 28
-
/* We wait two seconds after row is collapsed to unload the subdirectory */
#define COLLAPSE_TO_UNLOAD_DELAY 2