Remove unused code pointed out by Scrutinizer.

Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>