Why the `!defined(_WIN32)` if you're disabling it altogether anyway?

Suggestion: if the code is now effectively unused, just remove it altogether.  Dead code smells.