summaryrefslogtreecommitdiff
path: root/src/ui/theme.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-02-27 12:56:19 +0100
committerZenWalker <[email protected]>2019-03-28 13:58:49 +0100
commit83a915dc851f7d3385e0d38f57cc249e038dcd1d (patch)
tree29883b0cecffbc1ffe94fc272669119ef164763a /src/ui/theme.c
parent6f57d80bac06c6654f02652bcde562783a62d97f (diff)
downloadmarco-83a915dc851f7d3385e0d38f57cc249e038dcd1d.tar.bz2
marco-83a915dc851f7d3385e0d38f57cc249e038dcd1d.tar.xz
Improve performance by removing unused assignments
Diffstat (limited to 'src/ui/theme.c')
-rw-r--r--src/ui/theme.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index b97b0118..33a502b8 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -667,10 +667,6 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout,
fgeom->left_titlebar_edge = layout->left_titlebar_edge;
fgeom->right_titlebar_edge = layout->right_titlebar_edge;
- /* gcc warnings */
- button_width = -1;
- button_height = -1;
-
switch (layout->button_sizing)
{
case META_BUTTON_SIZING_ASPECT:
@@ -683,7 +679,9 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout,
break;
case META_BUTTON_SIZING_LAST:
g_assert_not_reached ();
- break;
+ default:
+ button_width = -1;
+ button_height = -1;
}
/* FIXME all this code sort of pretends that duplicate buttons