summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-08-12 02:55:22 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-10-17 17:03:31 +0200
commit6408a9a684e3fca9a9cae893759f1a8a807df5b2 (patch)
tree3731161ff6791bf3e18de01ea77d0d476b0d8b7e /src
parent19379dac7f6530685771122bd81a696e98490b8e (diff)
downloadengrampa-6408a9a684e3fca9a9cae893759f1a8a807df5b2.tar.bz2
engrampa-6408a9a684e3fca9a9cae893759f1a8a807df5b2.tar.xz
Remove unused macros
Diffstat (limited to 'src')
-rw-r--r--src/dlg-new.c1
-rw-r--r--src/file-utils.c3
-rw-r--r--src/fr-archive.c2
-rw-r--r--src/fr-command-tar.c4
-rw-r--r--src/fr-window.c8
-rw-r--r--src/gtk-utils.c1
-rw-r--r--src/java-utils.c1
7 files changed, 0 insertions, 20 deletions
diff --git a/src/dlg-new.c b/src/dlg-new.c
index 940d079..8b78561 100644
--- a/src/dlg-new.c
+++ b/src/dlg-new.c
@@ -34,7 +34,6 @@
#define GET_WIDGET(x) (GTK_WIDGET (gtk_builder_get_object (builder, (x))))
#define DEFAULT_EXTENSION ".tar.gz"
-#define BAD_CHARS "/\\*"
#define MEGABYTE (1024.0 * 1024.0)
diff --git a/src/file-utils.c b/src/file-utils.c
index 55d6bf4..15864d6 100644
--- a/src/file-utils.c
+++ b/src/file-utils.c
@@ -43,9 +43,6 @@
#include "fr-init.h"
-#define BUF_SIZE 4096
-#define FILE_PREFIX "file://"
-#define FILE_PREFIX_L 7
#define SPECIAL_DIR(x) ((strcmp ((x), "..") == 0) || (strcmp ((x), ".") == 0))
diff --git a/src/fr-archive.c b/src/fr-archive.c
index cb7b168..9b7c444 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -162,8 +162,6 @@ xfer_data_free (XferData *data)
#define MAX_CHUNK_LEN (NCARGS * 2 / 3) /* Max command line length */
-#define UNKNOWN_TYPE "application/octet-stream"
-#define SAME_FS (FALSE)
#define NO_BACKUP_FILES (TRUE)
#define NO_DOT_FILES (FALSE)
#define IGNORE_CASE (FALSE)
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index ffa911d..50aae1a 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -40,7 +40,6 @@
#include "fr-command.h"
#include "fr-command-tar.h"
-#define ACTIVITY_DELAY 20
#define LSTAR_DATE_FORMAT "%Y-%m-%d %H:%M"
static void fr_command_tar_class_init (FrCommandTarClass *class);
@@ -837,9 +836,6 @@ get_uncompressed_name (FrCommandTar *c_tar,
}
-#define MAX_TRIES 50
-
-
static char *
get_temp_name (FrCommandTar *c_tar,
const char *filepath)
diff --git a/src/fr-window.c b/src/fr-window.c
index 540c502..2d2cea6 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -60,10 +60,8 @@
#endif
#define LAST_OUTPUT_DIALOG_NAME "last-output"
-#define MAX_HISTORY_LEN 5
#define ACTIVITY_DELAY 100
#define ACTIVITY_PULSE_STEP (0.033)
-#define MAX_MESSAGE_LENGTH 50
#define PROGRESS_TIMEOUT_MSECS 5000
#define PROGRESS_DIALOG_DEFAULT_WIDTH 500
@@ -73,11 +71,6 @@
#define HIDE_PROGRESS_TIMEOUT_MSECS 500
#define DEFAULT_NAME_COLUMN_WIDTH 250
#define OTHER_COLUMNS_WIDTH 100
-#define RECENT_ITEM_MAX_WIDTH 25
-
-#define DEF_WIN_WIDTH 600
-#define DEF_WIN_HEIGHT 480
-#define DEF_SIDEBAR_WIDTH 200
#define FILE_LIST_ICON_SIZE GTK_ICON_SIZE_LARGE_TOOLBAR
@@ -91,7 +84,6 @@ static int file_list_icon_size = 0;
#define MAX_XDS_ATOM_VAL_LEN 4096
#define XDS_ATOM gdk_atom_intern ("XdndDirectSave0", FALSE)
#define TEXT_ATOM gdk_atom_intern ("text/plain", FALSE)
-#define OCTET_ATOM gdk_atom_intern ("application/octet-stream", FALSE)
#define XFR_ATOM gdk_atom_intern ("XdndEngrampa0", FALSE)
#define FR_CLIPBOARD (gdk_atom_intern_static_string ("_RNGRAMPA_SPECIAL_CLIPBOARD"))
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index c0e94db..d021147 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -26,7 +26,6 @@
#include <gtk/gtk.h>
#include "gtk-utils.h"
-#define LOAD_BUFFER_SIZE 65536
GtkWidget*
_gtk_message_dialog_new (GtkWindow *parent,
diff --git a/src/java-utils.c b/src/java-utils.c
index 7fa0ff3..fb95cf5 100644
--- a/src/java-utils.c
+++ b/src/java-utils.c
@@ -53,7 +53,6 @@
/* Sizes of structures */
-#define CONST_CLASS_INFO 2
#define CONST_FIELDREF_INFO 4
#define CONST_METHODREF_INFO 4
#define CONST_INTERFACEMETHODREF_INFO 4