Removed unused max variable

Wasn't used within its scope