Add missing semicolon and remove unused variable.