Removed unused method.

'isValid' was not called from anywhere. Removed it.