Code-cleanup.

Removed an unnecessary function.