From a7494c59cb64976a5233f2bb521984b6ed573ae2 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 22 Apr 2022 22:56:14 +0200 Subject: [PATCH] Minor code cleanup --- source/config/WUPSConfigExport.cpp | 1 - source/plugin/FunctionSymbolData.h | 2 +- source/plugin/PluginData.cpp | 1 - source/plugin/PluginMetaInformationFactory.cpp | 3 --- source/utils/StorageUtils.cpp | 1 - 5 files changed, 1 insertion(+), 7 deletions(-) diff --git a/source/config/WUPSConfigExport.cpp b/source/config/WUPSConfigExport.cpp index 841be45..a009e6c 100644 --- a/source/config/WUPSConfigExport.cpp +++ b/source/config/WUPSConfigExport.cpp @@ -31,7 +31,6 @@ int32_t WUPSConfig_GetName(WUPSConfigHandle handle, char *out_buf, int32_t out_l } auto *config = reinterpret_cast(handle); snprintf(out_buf, out_len, "%s", config->getName().c_str()); - DEBUG_FUNCTION_LINE("%s", out_buf); return 0; } diff --git a/source/plugin/FunctionSymbolData.h b/source/plugin/FunctionSymbolData.h index f846ed9..5471461 100644 --- a/source/plugin/FunctionSymbolData.h +++ b/source/plugin/FunctionSymbolData.h @@ -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; diff --git a/source/plugin/PluginData.cpp b/source/plugin/PluginData.cpp index 5a36cbe..fc0f8ee 100644 --- a/source/plugin/PluginData.cpp +++ b/source/plugin/PluginData.cpp @@ -2,7 +2,6 @@ #include "../utils/logger.h" #include -#include PluginData::PluginData(const PluginData &obj) { this->buffer = obj.buffer; diff --git a/source/plugin/PluginMetaInformationFactory.cpp b/source/plugin/PluginMetaInformationFactory.cpp index 05807f1..acba5f9 100644 --- a/source/plugin/PluginMetaInformationFactory.cpp +++ b/source/plugin/PluginMetaInformationFactory.cpp @@ -18,10 +18,7 @@ #include "PluginMetaInformationFactory.h" #include "../fs/FSUtils.h" #include "../utils/StringTools.h" -#include #include -#include -#include using namespace ELFIO; diff --git a/source/utils/StorageUtils.cpp b/source/utils/StorageUtils.cpp index 502f4bd..8353554 100644 --- a/source/utils/StorageUtils.cpp +++ b/source/utils/StorageUtils.cpp @@ -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; }