fixes #1883
Removed unused getEndpoints() method.