Removing redundant warning code.