st-widget: Remove some potentially dangerous but dead code

We really shouldn't be dereferencing these pointers before checking
that they're the thing they really are.
This commit is contained in:
Jasper St. Pierre 2012-03-09 21:24:10 -05:00
parent 9420174477
commit 14d267c246

View File

@ -989,7 +989,7 @@ void
st_widget_set_theme (StWidget *actor,
StTheme *theme)
{
StWidgetPrivate *priv = actor->priv;
StWidgetPrivate *priv;
g_return_if_fail (ST_IS_WIDGET (actor));
@ -1338,7 +1338,7 @@ void
st_widget_set_style (StWidget *actor,
const gchar *style)
{
StWidgetPrivate *priv = actor->priv;
StWidgetPrivate *priv;
g_return_if_fail (ST_IS_WIDGET (actor));