From af1e3d0187930c565c23e32652ab03dc11a8b0e8 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 22 Jan 2015 19:38:14 +0100 Subject: removed some obsolete code --- src/helper.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/helper.cpp') diff --git a/src/helper.cpp b/src/helper.cpp index d0825d10..bec5d51e 100644 --- a/src/helper.cpp +++ b/src/helper.cpp @@ -31,7 +31,7 @@ along with Mod Organizer. If not, see . namespace Helper { -bool helperExec(LPCWSTR moDirectory, LPCWSTR commandLine) +static bool helperExec(LPCWSTR moDirectory, LPCWSTR commandLine) { wchar_t fileName[MAX_PATH]; _snwprintf(fileName, MAX_PATH, L"%ls\\helper.exe", moDirectory); @@ -81,27 +81,6 @@ bool init(const std::wstring &moDirectory) } -bool setNXMHandler(const std::wstring &moDirectory, bool enable) -{ - DWORD userNameLen = UNLEN + 1; - wchar_t userName[UNLEN + 1]; - - if (!GetUserName(userName, &userNameLen)) { - reportError(QObject::tr("failed to determine account name")); - return false; - } - - wchar_t *commandLine = new wchar_t[32768]; - _snwprintf(commandLine, 32768, L"handleNXM \"%ls\" %d", - moDirectory.c_str(), enable ? 1 : 0); - - bool res = helperExec(moDirectory.c_str(), commandLine); - delete [] commandLine; - - return res; -} - - bool backdateBSAs(const std::wstring &moDirectory, const std::wstring &dataPath) { wchar_t *commandLine = new wchar_t[32768]; -- cgit v1.3.1