Removed some unused code.

Signed-off-by: Paulo Pires <pjpires@gmail.com>