summaryrefslogtreecommitdiff
path: root/src/glibext/bufferline.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-07-26 19:44:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-07-26 21:00:03 (GMT)
commitb80a36ab9746ca47b9c50827efe3856ce2840144 (patch)
tree622139ccf4d1b62d873be80b4547696f2acfb934 /src/glibext/bufferline.h
parentba30fbc703ff3ad77bb5df6c167809955215d49c (diff)
Removed dead code.
Diffstat (limited to 'src/glibext/bufferline.h')
-rw-r--r--src/glibext/bufferline.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/glibext/bufferline.h b/src/glibext/bufferline.h
index cfb4432..b911c21 100644
--- a/src/glibext/bufferline.h
+++ b/src/glibext/bufferline.h
@@ -104,10 +104,7 @@ typedef enum _BufferLineFlags
GType g_buffer_line_get_type(void);
/* Crée une nouvelle représentation de fragments de texte. */
-GBufferLine *g_buffer_line_new(const mrange_t *, BufferLineColumn);
-
-/* Indique la zone mémoire où se situe la ligne. */
-const mrange_t *g_buffer_line_get_range(const GBufferLine *);
+GBufferLine *g_buffer_line_new(BufferLineColumn);
/* Construit le tronc commun d'une ligne autour de sa position. */
void g_buffer_line_fill_phys(GBufferLine *, size_t, MemoryDataSize, const vmpa2t *);
@@ -155,17 +152,6 @@ void g_buffer_line_remove_flag(GBufferLine *, BufferLineFlags);
void g_buffer_line_export(GBufferLine *, buffer_export_context *, BufferExportType, const bool *);
-/* Petite aide pour la détection de commentaire */
-#define g_buffer_line_has_comment(ln) \
- ({ \
- bool __result; \
- __result = g_buffer_line_has_text(ln, BLC_COMMENTS, BLC_COUNT); \
- __result |= (g_buffer_line_get_merge_start(ln) == BLC_DISPLAY \
- && !(g_buffer_line_get_flags(ln) & BLF_IS_LABEL)); \
- __result; \
- })
-
-
/* ----------------------- MANIPULATION DES LARGEURS REQUISES ----------------------- */