Remove unused anonymous function pointer.

Reorganize positions of functions in the file.