summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/dvi/mdvi-lib/dviread.c5
-rw-r--r--backend/dvi/mdvi-lib/fontsrch.c1
-rw-r--r--backend/dvi/mdvi-lib/gf.c2
-rw-r--r--backend/dvi/mdvi-lib/pk.c1
-rw-r--r--backend/dvi/mdvi-lib/sp-epsf.c1
-rw-r--r--backend/dvi/mdvi-lib/special.c2
-rw-r--r--backend/dvi/mdvi-lib/tfm.c3
-rw-r--r--libview/ev-print-operation.c4
-rw-r--r--libview/ev-view.c4
-rw-r--r--libview/ev-web-view.c3
-rw-r--r--shell/ev-daemon.c5
-rw-r--r--shell/ev-window.c3
12 files changed, 0 insertions, 34 deletions
diff --git a/backend/dvi/mdvi-lib/dviread.c b/backend/dvi/mdvi-lib/dviread.c
index 66995d71..44005117 100644
--- a/backend/dvi/mdvi-lib/dviread.c
+++ b/backend/dvi/mdvi-lib/dviread.c
@@ -307,13 +307,8 @@ static void dreset(DviContext *dvi)
dvi->buffer.pos = 0;
}
-#define dsget1(d) dsgetn((d), 1)
-#define dsget2(d) dsgetn((d), 2)
-#define dsget3(d) dsgetn((d), 3)
#define dsget4(d) dsgetn((d), 4)
#define duget1(d) dugetn((d), 1)
-#define duget2(d) dugetn((d), 2)
-#define duget3(d) dugetn((d), 3)
#define duget4(d) dugetn((d), 4)
#ifndef NODEBUG
diff --git a/backend/dvi/mdvi-lib/fontsrch.c b/backend/dvi/mdvi-lib/fontsrch.c
index 77cd8704..af7e0263 100644
--- a/backend/dvi/mdvi-lib/fontsrch.c
+++ b/backend/dvi/mdvi-lib/fontsrch.c
@@ -50,7 +50,6 @@
#include <config.h>
#include "mdvi.h"
-#define HAVE_PROTOTYPES 1
#include <kpathsea/tex-file.h>
#include <kpathsea/tex-glyph.h>
diff --git a/backend/dvi/mdvi-lib/gf.c b/backend/dvi/mdvi-lib/gf.c
index d890e156..b010285e 100644
--- a/backend/dvi/mdvi-lib/gf.c
+++ b/backend/dvi/mdvi-lib/gf.c
@@ -29,7 +29,6 @@
#define GF_PAINT0 0
#define GF_PAINT1 64
-#define GF_PAINT2 65
#define GF_PAINT3 66
#define GF_BOC 67
#define GF_BOC1 68
@@ -39,7 +38,6 @@
#define GF_SKIP2 72
#define GF_SKIP3 73
#define GF_NEW_ROW_0 74
-#define GF_NEW_ROW_1 75
#define GF_NEW_ROW_MAX 238
#define GF_XXX1 239
#define GF_XXX2 240
diff --git a/backend/dvi/mdvi-lib/pk.c b/backend/dvi/mdvi-lib/pk.c
index 5e8da5bb..52b243bf 100644
--- a/backend/dvi/mdvi-lib/pk.c
+++ b/backend/dvi/mdvi-lib/pk.c
@@ -50,7 +50,6 @@
#define PK_PRE 247
#define PK_DYN_F(x) (((x) >> 4) & 0xf)
-#define PK_PACKED(x) (PK_DYN_F(x) != 14)
static int pk_load_font __PROTO((DviParams *, DviFont *));
static int pk_font_get_glyph __PROTO((DviParams *, DviFont *, int));
diff --git a/backend/dvi/mdvi-lib/sp-epsf.c b/backend/dvi/mdvi-lib/sp-epsf.c
index 104c955b..d9a73575 100644
--- a/backend/dvi/mdvi-lib/sp-epsf.c
+++ b/backend/dvi/mdvi-lib/sp-epsf.c
@@ -48,7 +48,6 @@ typedef struct {
#define HSCALE 10
#define VSCALE 11
#define ANGLE 12
-#define CLIP 13
void epsf_special __PROTO((DviContext *dvi, char *prefix, char *arg));
diff --git a/backend/dvi/mdvi-lib/special.c b/backend/dvi/mdvi-lib/special.c
index e1f1a618..64a1647b 100644
--- a/backend/dvi/mdvi-lib/special.c
+++ b/backend/dvi/mdvi-lib/special.c
@@ -151,8 +151,6 @@ int mdvi_unregister_special(const char *prefix)
return 0;
}
-#define IS_PREFIX_DELIMITER(x) (strchr(" \t\n:=", (x)) != NULL)
-
int mdvi_do_special(DviContext *dvi, char *string)
{
char *prefix;
diff --git a/backend/dvi/mdvi-lib/tfm.c b/backend/dvi/mdvi-lib/tfm.c
index f87140d2..59da4705 100644
--- a/backend/dvi/mdvi-lib/tfm.c
+++ b/backend/dvi/mdvi-lib/tfm.c
@@ -71,9 +71,6 @@ DviFontInfo afm_font_info = {
NULL
};
-#define TYPENAME(font) \
- ((font)->search.info ? (font)->search.info : "none")
-
/*
* Although it does not seem that way, this conversion is independent of the
* shrinking factors, within roundoff (that's because `conv' and `vconv'
diff --git a/libview/ev-print-operation.c b/libview/ev-print-operation.c
index be258b76..baccc179 100644
--- a/libview/ev-print-operation.c
+++ b/libview/ev-print-operation.c
@@ -361,8 +361,6 @@ ev_print_operation_update_status (EvPrintOperation *op,
/* Export interface */
#define EV_TYPE_PRINT_OPERATION_EXPORT (ev_print_operation_export_get_type())
#define EV_PRINT_OPERATION_EXPORT(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PRINT_OPERATION_EXPORT, EvPrintOperationExport))
-#define EV_PRINT_OPERATION_EXPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_PRINT_OPERATION_EXPORT, EvPrintOperationExportClass))
-#define EV_IS_PRINT_OPERATION_EXPORT(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PRINT_OPERATION_EXPORT))
typedef struct _EvPrintOperationExport EvPrintOperationExport;
typedef struct _EvPrintOperationExportClass EvPrintOperationExportClass;
@@ -1508,8 +1506,6 @@ ev_print_operation_export_class_init (EvPrintOperationExportClass *klass)
/* Print to cairo interface */
#define EV_TYPE_PRINT_OPERATION_PRINT (ev_print_operation_print_get_type())
#define EV_PRINT_OPERATION_PRINT(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PRINT_OPERATION_PRINT, EvPrintOperationPrint))
-#define EV_PRINT_OPERATION_PRINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_PRINT_OPERATION_PRINT, EvPrintOperationPrintClass))
-#define EV_IS_PRINT_OPERATION_PRINT(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PRINT_OPERATION_PRINT))
typedef struct _EvPrintOperationPrint EvPrintOperationPrint;
typedef struct _EvPrintOperationPrintClass EvPrintOperationPrintClass;
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 29b06fbe..2e01035e 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -46,10 +46,6 @@
#include "ev-view-private.h"
#include "ev-view-type-builtins.h"
-#define EV_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_VIEW, EvViewClass))
-#define EV_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_VIEW))
-#define EV_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_VIEW, EvViewClass))
-
enum {
SIGNAL_SCROLL,
SIGNAL_HANDLE_LINK,
diff --git a/libview/ev-web-view.c b/libview/ev-web-view.c
index 3fa532f4..ecd7a02b 100644
--- a/libview/ev-web-view.c
+++ b/libview/ev-web-view.c
@@ -31,9 +31,6 @@
#include "ev-document-model.h"
#include "ev-jobs.h"
-#define EV_WEB_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_WEB_VIEW, EvWebViewClass))
-#define EV_IS_WEB_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_WEB_VIEW))
-#define EV_WEB_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_WEB_VIEW, EvWebViewClass))
typedef enum {
EV_WEB_VIEW_FIND_NEXT,
diff --git a/shell/ev-daemon.c b/shell/ev-daemon.c
index 14e72bf2..a45adefb 100644
--- a/shell/ev-daemon.c
+++ b/shell/ev-daemon.c
@@ -35,7 +35,6 @@
#include "ev-daemon-gdbus-generated.h"
#define EV_DBUS_DAEMON_NAME "org.mate.atril.Daemon"
-#define EV_DBUS_DAEMON_INTERFACE_NAME "org.mate.atril.Daemon"
#define EV_DBUS_DAEMON_OBJECT_PATH "/org/mate/atril/Daemon"
#define EV_DBUS_WINDOW_INTERFACE_NAME "org.mate.atril.Window"
@@ -47,10 +46,6 @@
#define EV_TYPE_DAEMON_APPLICATION (ev_daemon_application_get_type ())
#define EV_DAEMON_APPLICATION(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), EV_TYPE_DAEMON_APPLICATION, EvDaemonApplication))
-#define EV_DAEMON_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_DAEMON_APPLICATION, EvDaemonApplicationClass))
-#define EV_IS_DAEMON_APPLICATION(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), EV_TYPE_DAEMON_APPLICATION))
-#define EV_IS_DAEMON_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_DAEMON_APPLICATION))
-#define EV_DAEMON_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_DAEMON_APPLICATION, EvDaemonApplicationClass))
typedef struct _EvDaemonApplication EvDaemonApplication;
typedef struct _EvDaemonApplicationClass EvDaemonApplicationClass;
diff --git a/shell/ev-window.c b/shell/ev-window.c
index bffc9a7f..0159ace0 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -257,7 +257,6 @@ struct _EvWindowPrivate {
#ifdef ENABLE_DBUS
#define EV_WINDOW_DBUS_OBJECT_PATH "/org/mate/atril/Window/%d"
-#define EV_WINDOW_DBUS_INTERFACE "org.mate.atril.Window"
#endif
#define GS_SCHEMA_NAME "org.mate.Atril"
@@ -279,8 +278,6 @@ struct _EvWindowPrivate {
#define EV_PRINT_SETTINGS_GROUP "Print Settings"
#define EV_PAGE_SETUP_GROUP "Page Setup"
-#define EV_TOOLBARS_FILENAME "atril-toolbar.xml"
-
#define MIN_SCALE 0.05409
#define MAX_RECENT_ITEM_LEN (40)