Fix duplication and clang warning in unreachable gathering target fix rP22816 / D2120
The function was put in an anonymous namespace to avoid linking errors should another one be defined elsewhere.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D2243