summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2018-03-20 15:29:41 +0100
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2018-03-28 13:09:50 +0300
commit77db9316ebd75c57c210417fd059a6d377047b56 (patch)
tree087f79a495f9bdef6b63316a7f44d2bbe72d5dca
parente479ed8ec22514bb608c5593fe963701398e62f6 (diff)
ivi-shell: remove dead assignments in layer transition
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--ivi-shell/ivi-layout-transition.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ivi-shell/ivi-layout-transition.c b/ivi-shell/ivi-layout-transition.c
index b887ff65..a223b58a 100644
--- a/ivi-shell/ivi-layout-transition.c
+++ b/ivi-shell/ivi-layout-transition.c
@@ -843,10 +843,10 @@ ivi_layout_transition_fade_layer(
uint32_t duration)
{
struct ivi_layout_transition *transition;
- struct fade_layer_data *data = NULL;
- wl_fixed_t fixed_opacity = 0.0;
- double now_opacity = 0.0;
- double remain = 0.0;
+ struct fade_layer_data *data;
+ wl_fixed_t fixed_opacity;
+ double now_opacity;
+ double remain;
transition = get_transition_from_type_and_id(
IVI_LAYOUT_TRANSITION_LAYER_FADE,
@@ -858,7 +858,6 @@ ivi_layout_transition_fade_layer(
/* FIXME */
fixed_opacity = layer->prop.opacity;
now_opacity = wl_fixed_to_double(fixed_opacity);
- remain = 0.0;
data->is_fade_in = is_fade_in;
data->start_alpha = now_opacity;