spinner: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.
This commit is contained in:
Benjamin Otte 2014-04-30 08:35:24 +02:00
parent 67981b1831
commit a1bba344f2

View File

@ -34,6 +34,7 @@
#include "gtkimage.h"
#include "gtkintl.h"
#include "gtkstylecontext.h"
#include "gtkstylecontextprivate.h"
#include "a11y/gtkspinneraccessible.h"
@ -172,11 +173,8 @@ gtk_spinner_get_preferred_width (GtkWidget *widget,
gint *minimum_size,
gint *natural_size)
{
if (minimum_size)
*minimum_size = SPINNER_SIZE;
if (natural_size)
*natural_size = SPINNER_SIZE;
*minimum_size = SPINNER_SIZE;
*natural_size = SPINNER_SIZE;
}
static void
@ -184,11 +182,8 @@ gtk_spinner_get_preferred_height (GtkWidget *widget,
gint *minimum_size,
gint *natural_size)
{
if (minimum_size)
*minimum_size = SPINNER_SIZE;
if (natural_size)
*natural_size = SPINNER_SIZE;
*minimum_size = SPINNER_SIZE;
*natural_size = SPINNER_SIZE;
}
static gboolean