Removed unnused methods and types.