Remove unused sub-function

Completes commit a31475fc0f465579a90ea4123705daa7573ed5f6.