Revert "units: Handle negative values in clutter_units_from_string()"
Stray commit got pushed too soon.
This reverts commit 44f283bb72
.
This commit is contained in:
@ -480,21 +480,11 @@ clutter_units_from_string (ClutterUnits *units,
|
||||
ClutterBackend *backend;
|
||||
ClutterUnitType unit_type;
|
||||
gfloat value;
|
||||
gboolean negative = FALSE;
|
||||
|
||||
g_return_val_if_fail (units != NULL, FALSE);
|
||||
g_return_val_if_fail (str != NULL, FALSE);
|
||||
|
||||
/* strip leading space */
|
||||
while (g_ascii_isspace (*str) || *str == '+')
|
||||
str++;
|
||||
|
||||
if (*str == '-')
|
||||
{
|
||||
negative = TRUE;
|
||||
str++;
|
||||
}
|
||||
|
||||
while (g_ascii_isspace (*str))
|
||||
str++;
|
||||
|
||||
@ -560,9 +550,6 @@ clutter_units_from_string (ClutterUnits *units,
|
||||
if (*str != '\0')
|
||||
return FALSE;
|
||||
|
||||
if (negative)
|
||||
value *= -1;
|
||||
|
||||
backend = clutter_get_default_backend ();
|
||||
|
||||
units->unit_type = unit_type;
|
||||
|
Reference in New Issue
Block a user