desktop-shell: Remove unused variable in panel_create
Signed-off-by: Raúl Peñacoba <raul.mikaop.zelda@gmail.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
ed016bff23
commit
07a2b99f7f
@ -591,7 +591,6 @@ panel_create(struct desktop *desktop)
|
||||
{
|
||||
struct panel *panel;
|
||||
struct weston_config_section *s;
|
||||
char *clock_format_option = NULL;
|
||||
|
||||
panel = xzalloc(sizeof *panel);
|
||||
|
||||
@ -611,8 +610,6 @@ panel_create(struct desktop *desktop)
|
||||
if (panel->clock_format != CLOCK_FORMAT_NONE)
|
||||
panel_add_clock(panel);
|
||||
|
||||
free (clock_format_option);
|
||||
|
||||
s = weston_config_get_section(desktop->config, "shell", NULL, NULL);
|
||||
weston_config_section_get_color(s, "panel-color",
|
||||
&panel->color, 0xaa000000);
|
||||
|
Loading…
Reference in New Issue
Block a user