summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-10-08 05:07:55 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-10-08 05:07:55 +0000
commit07e7719441f5927bc3c482717fc53f8529186e3a (patch)
tree4baea8ab1c47987dc80120c67cb16be141a16b8d /gtk/gtktextiter.c
parente4581869b4a93ab882439673159a8f77b2396e57 (diff)
downloadgtk+-07e7719441f5927bc3c482717fc53f8529186e3a.tar.gz
Apply a cleanup patch by Kjartan Maraas (#341812)
2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r--gtk/gtktextiter.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c
index 4ba37f9cf5..8ac3fb35f5 100644
--- a/gtk/gtktextiter.c
+++ b/gtk/gtktextiter.c
@@ -300,24 +300,12 @@ iter_init_from_char_offset (GtkTextIter *iter,
}
static inline void
-invalidate_segment (GtkTextRealIter *iter)
-{
- iter->segments_changed_stamp -= 1;
-}
-
-static inline void
invalidate_char_index (GtkTextRealIter *iter)
{
iter->cached_char_index = -1;
}
static inline void
-invalidate_line_number (GtkTextRealIter *iter)
-{
- iter->cached_line_number = -1;
-}
-
-static inline void
adjust_char_index (GtkTextRealIter *iter, gint count)
{
if (iter->cached_char_index >= 0)
@@ -332,28 +320,6 @@ adjust_line_number (GtkTextRealIter *iter, gint count)
}
static inline void
-adjust_char_offsets (GtkTextRealIter *iter, gint count)
-{
- if (iter->line_char_offset >= 0)
- {
- iter->line_char_offset += count;
- g_assert (iter->segment_char_offset >= 0);
- iter->segment_char_offset += count;
- }
-}
-
-static inline void
-adjust_byte_offsets (GtkTextRealIter *iter, gint count)
-{
- if (iter->line_byte_offset >= 0)
- {
- iter->line_byte_offset += count;
- g_assert (iter->segment_byte_offset >= 0);
- iter->segment_byte_offset += count;
- }
-}
-
-static inline void
ensure_char_offsets (GtkTextRealIter *iter)
{
if (iter->line_char_offset < 0)
@@ -3917,7 +3883,6 @@ gtk_text_iter_set_visible_line_index (GtkTextIter *iter,
gint byte_on_line)
{
GtkTextRealIter *real;
- gint bytes_in_line = 0;
gint offset = 0;
GtkTextIter pos;
GtkTextLineSegment *seg;
@@ -3926,8 +3891,6 @@ gtk_text_iter_set_visible_line_index (GtkTextIter *iter,
gtk_text_iter_set_line_offset (iter, 0);
- bytes_in_line = gtk_text_iter_get_bytes_in_line (iter);
-
pos = *iter;
real = gtk_text_iter_make_real (&pos);