diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-04-24 18:07:28 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-04-24 18:07:28 +0200 |
commit | fc727fef91eb276d8b9a1cf8ed8f5934ae209f59 (patch) | |
tree | 7f6fe148a3fd2c1b033ce53d8a1f67df1abb9480 | |
parent | d2015acf9dd3229efa4741508e473def1065917f (diff) |
[Theme] Don't print unneeded ().
-rw-r--r-- | source/theme.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/source/theme.c b/source/theme.c index fd9aa8ec..1a7fe863 100644 --- a/source/theme.c +++ b/source/theme.c @@ -277,7 +277,7 @@ inline static void printf_double ( double d ) static void rofi_theme_print_distance_unit ( RofiDistanceUnit *unit ) { - if ( unit->modtype != ROFI_DISTANCE_MODIFIER_NONE ) + if ( unit->modtype == ROFI_DISTANCE_MODIFIER_GROUP ) fputs("( " , stdout); if ( unit->left ) rofi_theme_print_distance_unit ( unit->left ); @@ -312,7 +312,7 @@ static void rofi_theme_print_distance_unit ( RofiDistanceUnit *unit ) fputs ( "em ", stdout ); } } - if ( unit->modtype != ROFI_DISTANCE_MODIFIER_NONE ) + if ( unit->modtype == ROFI_DISTANCE_MODIFIER_GROUP ) fputs(" )" , stdout); } @@ -975,15 +975,7 @@ static int distance_unit_get_pixel ( RofiDistanceUnit *unit, RofiOrientation ori int distance_get_pixel ( RofiDistance d, RofiOrientation ori ) { - if ( d.base.modtype == ROFI_DISTANCE_MODIFIER_GROUP ){ - rofi_theme_print_distance_unit ( &(d.base) ); - printf("\n"); - } - int val = distance_unit_get_pixel ( &(d.base), ori); - if ( d.base.modtype == ROFI_DISTANCE_MODIFIER_GROUP ){ - printf("val: %d\r\n", val); - } - return val; + return distance_unit_get_pixel ( &(d.base), ori); } void distance_get_linestyle ( RofiDistance d, cairo_t *draw ) |