Minor code cleanup

This commit is contained in:
Maschell 2022-04-22 22:56:14 +02:00
parent 48eb915a70
commit a7494c59cb
5 changed files with 1 additions and 7 deletions

View File

@ -31,7 +31,6 @@ int32_t WUPSConfig_GetName(WUPSConfigHandle handle, char *out_buf, int32_t out_l
}
auto *config = reinterpret_cast<WUPSConfig *>(handle);
snprintf(out_buf, out_len, "%s", config->getName().c_str());
DEBUG_FUNCTION_LINE("%s", out_buf);
return 0;
}

View File

@ -30,7 +30,7 @@ public:
}
bool operator<(const FunctionSymbolData &rhs) const {
return (uint32_t) address < (uint32_t) rhs.address; //assume that you compare the record based on a
return (uint32_t) address < (uint32_t) rhs.address;
}
virtual ~FunctionSymbolData() = default;

View File

@ -2,7 +2,6 @@
#include "../utils/logger.h"
#include <malloc.h>
#include <utility>
PluginData::PluginData(const PluginData &obj) {
this->buffer = obj.buffer;

View File

@ -18,10 +18,7 @@
#include "PluginMetaInformationFactory.h"
#include "../fs/FSUtils.h"
#include "../utils/StringTools.h"
#include <dirent.h>
#include <memory>
#include <sys/types.h>
#include <whb/file.h>
using namespace ELFIO;

View File

@ -72,7 +72,6 @@ int StorageUtils::OpenStorage(const char *plugin_id, wups_storage_item_t *items)
return WUPS_STORAGE_ERROR_INVALID_JSON;
}
} else { // empty or no config exists yet
DEBUG_FUNCTION_LINE("open failed");
return WUPS_STORAGE_ERROR_SUCCESS;
}