Remove some unused method.