samples: nrf52: mesh: removed unwanted lines of Code

Removed redundant lines of code which are inappropriate
as per latest implementation.

Signed-off-by: Vikrant More <vikrant8051@gmail.com>
This commit is contained in:
Vikrant More 2018-12-12 15:53:42 +05:30 committed by Johan Hedberg
parent 523acef71c
commit c41a837004
2 changed files with 0 additions and 9 deletions

View file

@ -55,8 +55,6 @@ struct generic_level_state {
struct generic_onpowerup_state {
u8_t onpowerup;
u8_t last_tid;
u16_t last_tx_addr;
};
struct gen_def_trans_time_state {

View file

@ -624,7 +624,6 @@ K_TIMER_DEFINE(dummy_timer, NULL, NULL);
void onoff_handler(struct generic_onoff_state *state)
{
ptr_timer = &state->transition->timer;
state->transition->just_started = true;
k_timer_init(ptr_timer, onoff_tt_handler, NULL);
@ -636,7 +635,6 @@ void onoff_handler(struct generic_onoff_state *state)
void level_lightness_handler(struct generic_level_state *state)
{
ptr_timer = &state->transition->timer;
state->transition->just_started = true;
k_timer_init(ptr_timer, level_lightness_tt_handler, NULL);
@ -648,7 +646,6 @@ void level_lightness_handler(struct generic_level_state *state)
void level_temp_handler(struct generic_level_state *state)
{
ptr_timer = &state->transition->timer;
state->transition->just_started = true;
k_timer_init(ptr_timer, level_temp_tt_handler, NULL);
@ -660,7 +657,6 @@ void level_temp_handler(struct generic_level_state *state)
void light_lightness_actual_handler(struct light_lightness_state *state)
{
ptr_timer = &state->transition->timer;
state->transition->just_started = true;
k_timer_init(ptr_timer, light_lightness_actual_tt_handler, NULL);
@ -672,7 +668,6 @@ void light_lightness_actual_handler(struct light_lightness_state *state)
void light_lightness_linear_handler(struct light_lightness_state *state)
{
ptr_timer = &state->transition->timer;
state->transition->just_started = true;
k_timer_init(ptr_timer, light_lightness_linear_tt_handler, NULL);
@ -684,7 +679,6 @@ void light_lightness_linear_handler(struct light_lightness_state *state)
void light_ctl_handler(struct light_ctl_state *state)
{
ptr_timer = &state->transition->timer;
state->transition->just_started = true;
k_timer_init(ptr_timer, light_ctl_tt_handler, NULL);
@ -696,7 +690,6 @@ void light_ctl_handler(struct light_ctl_state *state)
void light_ctl_temp_handler(struct light_ctl_state *state)
{
ptr_timer = &state->transition->timer;
state->transition->just_started = true;
k_timer_init(ptr_timer, light_ctl_temp_tt_handler, NULL);