Removes unused methods.