Fixed unused code

Singed-off-by: Grégory PLANCHAT <g.planchat@gmail.com>