Permalink
Browse files

patch 8.0.0276: unnecessary #ifdefs

Problem:    Checking for FEAT_GUI_GNOME inside GTK 3 code is unnecessary.
Solution:   Remove the #ifdef. (Kazunobu Kuriyama)
  • Loading branch information...
brammool committed Feb 1, 2017
1 parent e3caa11 commit 3954e3c4b5d2bfda4c481c076fbc39ab06be7639
Showing with 2 additions and 8 deletions.
  1. +0 −8 src/gui_gtk_x11.c
  2. +2 −0 src/version.c
View
@@ -3212,15 +3212,7 @@ get_item_dimensions(GtkWidget *widget, GtkOrientation orientation)
GtkAllocation allocation;
gtk_widget_get_allocation(widget, &allocation);
-
-# ifdef FEAT_GUI_GNOME
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- return allocation.height;
- else
- return allocation.width;
-# else
return allocation.height;
-#endif
# else
# ifdef FEAT_GUI_GNOME
if (orientation == GTK_ORIENTATION_HORIZONTAL)
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 276,
/**/
275,
/**/

0 comments on commit 3954e3c

Please sign in to comment.