diff --git a/companion/src/simulation/simulatorinterface.cpp b/companion/src/simulation/simulatorinterface.cpp index dd71e3400..9643e0eeb 100644 --- a/companion/src/simulation/simulatorinterface.cpp +++ b/companion/src/simulation/simulatorinterface.cpp @@ -93,12 +93,6 @@ void SimulatorLoader::registerSimulators() #if defined(__APPLE__) dir = QLibraryInfo::location(QLibraryInfo::PrefixPath) + "/Resources"; -#elif (!defined __GNUC__) - char name[MAX_PATH]; - GetModuleFileName(NULL, name, MAX_PATH); - QString path(name); - path.truncate(path.lastIndexOf('\\')); - dir.setPath(path); #else if (QDir::isAbsolutePath(SIMULATOR_LIB_SEARCH_PATH)) { dir.setPath(SIMULATOR_LIB_SEARCH_PATH);