Removed some redundant code.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>