removed unused code

Signed-off-by: Graham Chiu <compkarori@gmail.com>