Fix warning msg
Removing unneeded code