Rather than going through and deleting all of the code for the comments section, why not just turn off comments in the admin interface?
Log into your gallery admin, hit the Options tab, then scroll down to Interface Options (3rd section). Look for Allow User Comments? (will override individual settings) and uncheck the box. That will disallow comments, and the comments section will not show up on your gallery pages.