Removing strange block of code that should not even be a thing