[gtk+] Remove an unused private function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove an unused private function
- Date: Sun, 5 May 2013 19:38:18 +0000 (UTC)
commit 111cc604f5aa920c21c4db311d8d52a03d5657f2
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 5 14:26:33 2013 -0400
Remove an unused private function
_gtk_text_layout_get_line_xrange was not exported and not used
inside GTK+ either.
gtk/gtktextlayout.c | 39 ---------------------------------------
gtk/gtktextlayout.h | 4 ----
2 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 73be6b4..f87714b 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -2837,45 +2837,6 @@ gtk_text_layout_get_line_yrange (GtkTextLayout *layout,
}
}
-/**
- * _gtk_text_layout_get_line_xrange:
- * @layout: a #GtkTextLayout
- * @iter: a #GtkTextIter
- * @x: location to store the top of the paragraph in pixels,
- * or %NULL.
- * @width location to store the height of the paragraph in pixels,
- * or %NULL.
- *
- * Find the range of X coordinates for the paragraph containing
- * the given iter. Private for 2.0 due to API freeze, could
- * be made public for 2.2.
- **/
-void
-_gtk_text_layout_get_line_xrange (GtkTextLayout *layout,
- const GtkTextIter *iter,
- gint *x,
- gint *width)
-{
- GtkTextLine *line;
-
- g_return_if_fail (GTK_IS_TEXT_LAYOUT (layout));
- g_return_if_fail (_gtk_text_iter_get_btree (iter) == _gtk_text_buffer_get_btree (layout->buffer));
-
- line = _gtk_text_iter_get_text_line (iter);
-
- if (x)
- *x = 0; /* FIXME This is wrong; should represent the first available cursor position */
-
- if (width)
- {
- GtkTextLineData *line_data = _gtk_text_line_get_data (line, layout);
- if (line_data)
- *width = line_data->width;
- else
- *width = 0;
- }
-}
-
void
gtk_text_layout_get_iter_location (GtkTextLayout *layout,
const GtkTextIter *iter,
diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h
index 819aaf2..326b21e 100644
--- a/gtk/gtktextlayout.h
+++ b/gtk/gtktextlayout.h
@@ -372,10 +372,6 @@ void gtk_text_layout_get_line_yrange (GtkTextLayout *layout,
const GtkTextIter *iter,
gint *y,
gint *height);
-void _gtk_text_layout_get_line_xrange (GtkTextLayout *layout,
- const GtkTextIter *iter,
- gint *x,
- gint *width);
void gtk_text_layout_get_cursor_locations (GtkTextLayout *layout,
GtkTextIter *iter,
GdkRectangle *strong_pos,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]