From 4ab895037d8a88c52e1df7134d49593324ca419e Mon Sep 17 00:00:00 2001 From: Dimitrios Stoupis <dimitris.apple@gmail.com> Date: Wed, 21 Nov 2018 09:36:41 +0000 Subject: [PATCH] Removed unused functions - Since the reporting is handled within the request function, there is no reason for the existance of the reporting function --- inc/Services/MemMangService.hpp | 6 ------ src/Services/MemMangService.cpp | 4 ---- src/main.cpp | 4 +--- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/inc/Services/MemMangService.hpp b/inc/Services/MemMangService.hpp index 30c506da..3f4030b6 100644 --- a/inc/Services/MemMangService.hpp +++ b/inc/Services/MemMangService.hpp @@ -25,12 +25,6 @@ public: */ class RawDataMemoryManagement { private: - /** - * TM[6,6] dumped raw memory data report - * - * @details This report is triggered through TC[6,5] - */ - void dumpedRawDataReport(); MemoryManagementService *mainService; // Used to access main class's members public: diff --git a/src/Services/MemMangService.cpp b/src/Services/MemMangService.cpp index 6f157e3d..a1394736 100644 --- a/src/Services/MemMangService.cpp +++ b/src/Services/MemMangService.cpp @@ -74,7 +74,3 @@ void MemoryManagementService::RawDataMemoryManagement::dumpRawData(Message &requ report.resetRead(); // Reset the reading count free(readData); // Free the allocated memory } - -/*void MemoryManagementService::RawDataMemoryManagement::dumpedRawDataReport() { - -}*/ diff --git a/src/main.cpp b/src/main.cpp index 2f30e751..121579e4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,9 +33,7 @@ int main() { Message rcvPack = Message(6, 2, Message::TC, 1); rcvPack.appendEnum8(MemoryManagementService::MemoryID::RAM); // Memory ID rcvPack.appendUint16(1); // Iteration count - - // Start address - rcvPack.appendUint64(static_cast<uint64_t >(reinterpret_cast<std::size_t >(string))); + rcvPack.appendUint64(reinterpret_cast<uint64_t >(string)); // Start address rcvPack.appendUint16(sizeof(string)/ sizeof(string[0])); // Data read length memMangService.rawDataMemorySubservice.dumpRawData(rcvPack); -- GitLab