Skip to content

Commit

Permalink
Remove more unused code and files
Browse files Browse the repository at this point in the history
  • Loading branch information
foodprocessor committed Aug 29, 2024
1 parent 7631cc7 commit fb13480
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 234 deletions.
1 change: 0 additions & 1 deletion src/plugin/settings/device_agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <nx/kit/utils.h>
#include <nx/sdk/helpers/active_setting_changed_response.h>
#include <nx/sdk/helpers/error.h>
#include <utils.h>

#include "settings_model.h"
#include "stub_analytics_plugin_settings_ini.h"
Expand Down
25 changes: 0 additions & 25 deletions src/plugin/settings/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <nx/kit/ini_config.h>
#include <nx/sdk/helpers/active_setting_changed_response.h>
#include <nx/sdk/helpers/error.h>
#include <utils.h>

#ifdef _WIN32
#include <windows.h>
Expand Down Expand Up @@ -190,30 +189,6 @@ void Engine::doGetSettingsOnActiveSettingChange(Result<const IActiveSettingChang
const IActiveSettingChangedAction *activeSettingChangedAction)
{
NX_PRINT << "cloudfuse Engine::doGetSettingsOnActiveSettingChange";
std::string parseError;
Json model = Json::parse(activeSettingChangedAction->settingsModel(), parseError);
if (parseError != "")
{
std::string errorMessage = "Failed to parse activeSettingChangedAction model JSON. Here's why: " + parseError;
NX_PRINT << errorMessage;
*outResult = error(ErrorCode::internalError, errorMessage);
return;
}

Json::object modelObject = model.object_items();

const std::string settingId(activeSettingChangedAction->activeSettingName());

std::map<std::string, std::string> values = toStdMap(shareToPtr(activeSettingChangedAction->settingsValues()));

const auto settingsResponse = makePtr<SettingsResponse>();
settingsResponse->setValues(makePtr<StringMap>(values));
settingsResponse->setModel(makePtr<String>(Json(modelObject).dump()));

auto response = makePtr<ActiveSettingChangedResponse>();
response->setSettingsResponse(settingsResponse);

*outResult = response.releasePtr();
}

bool Engine::settingsChanged()
Expand Down
89 changes: 0 additions & 89 deletions src/plugin/utils.cpp

This file was deleted.

119 changes: 0 additions & 119 deletions src/plugin/utils.h

This file was deleted.

0 comments on commit fb13480

Please sign in to comment.