Remove unnecessary method declarations.