Remove unneeded response

This commit is contained in:
luiscuenca 2019-07-11 11:13:58 -07:00
parent 9c56f74662
commit bc5f8ad775
No known key found for this signature in database
GPG key ID: 2387ECD129A6961D
2 changed files with 3 additions and 4 deletions

View file

@ -24,8 +24,7 @@ LauncherManager::~LauncherManager() {
void LauncherManager::init() {
initLog();
addToLog(_T("Getting most recent build"));
CString response;
getMostRecentBuild(_latestApplicationURL, _latestVersion, response);
getMostRecentBuild(_latestApplicationURL, _latestVersion);
}
BOOL LauncherManager::initLog() {
@ -360,7 +359,7 @@ LauncherUtils::ResponseError LauncherManager::readOrganizationJSON(const CString
return LauncherUtils::ResponseError::ParsingJSON;
}
void LauncherManager::getMostRecentBuild(CString& urlOut, CString& versionOut, CString& response) {
void LauncherManager::getMostRecentBuild(CString& urlOut, CString& versionOut) {
CString contentTypeJson = L"content-type:application/json";
std::function<void(CString, int)> httpCallback = [&](CString response, int err) {
LauncherUtils::ResponseError error = LauncherUtils::ResponseError(err);

View file

@ -67,7 +67,7 @@ public:
BOOL isApplicationInstalled(CString& version, CString& domain,
CString& content, bool& loggedIn);
LauncherUtils::ResponseError getAccessTokenForCredentials(const CString& username, const CString& password);
void getMostRecentBuild(CString& urlOut, CString& versionOut, CString& response);
void getMostRecentBuild(CString& urlOut, CString& versionOut);
LauncherUtils::ResponseError readOrganizationJSON(const CString& hash);
LauncherUtils::ResponseError readConfigJSON(CString& version, CString& domain,
CString& content, bool& loggedIn);