Skip to content

Commit

Permalink
textview: inline a function
Browse files Browse the repository at this point in the history
gtk_text_view_move_cursor_internal() was exactly the same as
gtk_text_view_move_cursor(), and was called only in the latter function.

https://bugzilla.gnome.org/show_bug.cgi?id=727908
  • Loading branch information
Sébastien Wilmet authored and Matthias Clasen committed Apr 13, 2014
1 parent 22ce03f commit d69d57a
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions gtk/gtktextview.c
Original file line number Diff line number Diff line change
Expand Up @@ -5876,10 +5876,10 @@ move_cursor (GtkTextView *text_view,
}

static void
gtk_text_view_move_cursor_internal (GtkTextView *text_view,
GtkMovementStep step,
gint count,
gboolean extend_selection)
gtk_text_view_move_cursor (GtkTextView *text_view,
GtkMovementStep step,
gint count,
gboolean extend_selection)
{
GtkTextViewPrivate *priv;
GtkTextIter insert;
Expand Down Expand Up @@ -6122,15 +6122,6 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
gtk_text_view_pend_cursor_blink (text_view);
}

static void
gtk_text_view_move_cursor (GtkTextView *text_view,
GtkMovementStep step,
gint count,
gboolean extend_selection)
{
gtk_text_view_move_cursor_internal (text_view, step, count, extend_selection);
}

static void
gtk_text_view_move_viewport (GtkTextView *text_view,
GtkScrollStep step,
Expand Down

0 comments on commit d69d57a

Please sign in to comment.