[PATCH weston] desktop-shell: Remove unused variable in panel_create
Quentin Glidic
sardemff7+wayland at sardemff7.net
Sat Mar 25 16:27:20 UTC 2017
On 3/25/17 4:42 PM, Raúl Peñacoba wrote:
> Signed-off-by: Raúl Peñacoba <raul.mikaop.zelda at gmail.com>
Good catch:
Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>
And pushed:
ed016bff..07a2b99f master -> master
Thanks,
> ---
> clients/desktop-shell.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
> index 2667e9bb..599295ee 100644
> --- a/clients/desktop-shell.c
> +++ b/clients/desktop-shell.c
> @@ -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);
>
--
Quentin “Sardem FF7” Glidic
More information about the wayland-devel
mailing list