From 371810181dcdd0752d4b299073c6deef6204a437 Mon Sep 17 00:00:00 2001 From: Matthew Brush Date: Thu, 3 Aug 2017 18:34:31 -0700 Subject: [PATCH] Remove redundant SSM macros --- src/editor.c | 4 ---- src/highlighting.c | 4 ---- src/sciwrappers.c | 3 --- src/sciwrappers.h | 5 +++++ 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/editor.c b/src/editor.c index ed2c654c..bb48b56f 100644 --- a/src/editor.c +++ b/src/editor.c @@ -67,10 +67,6 @@ #include -/* Note: use sciwrappers.h instead where possible. - * Do not use SSM in files unrelated to scintilla. */ -#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l) - static GHashTable *snippet_hash = NULL; static GtkAccelGroup *snippet_accel_group = NULL; static gboolean autocomplete_scope_shown = FALSE; diff --git a/src/highlighting.c b/src/highlighting.c index b67c651b..2f8acee0 100644 --- a/src/highlighting.c +++ b/src/highlighting.c @@ -125,10 +125,6 @@ static GHashTable *named_style_hash = NULL; static GeanyLexerStyle gsd_default = {0x000000, 0xffffff, FALSE, FALSE}; -/* Note: use sciwrappers.h instead where possible. - * Do not use SSM in files unrelated to scintilla. */ -#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l) - /* filetypes should use the filetypes.foo [lexer_properties] group instead of hardcoding */ static void sci_set_property(ScintillaObject *sci, const gchar *name, const gchar *value) { diff --git a/src/sciwrappers.c b/src/sciwrappers.c index bd3ac5b2..6e13d0d0 100644 --- a/src/sciwrappers.c +++ b/src/sciwrappers.c @@ -42,9 +42,6 @@ #include -#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l) - - /* line numbers visibility */ void sci_set_line_numbers(ScintillaObject *sci, gboolean set) { diff --git a/src/sciwrappers.h b/src/sciwrappers.h index 1bc9abd3..91a57fd6 100644 --- a/src/sciwrappers.h +++ b/src/sciwrappers.h @@ -28,6 +28,11 @@ #include "ScintillaWidget.h" /* for ScintillaObject */ +#ifdef GEANY_PRIVATE +#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l) +#endif + + G_BEGIN_DECLS void sci_set_text (ScintillaObject *sci, const gchar *text);