Remove unused code

Fixes pyflakes error

Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>