From 1d00178a1ec507ccd1e0f957cfd992721448891d Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Sun, 21 Oct 2018 13:11:08 -0700 Subject: IPMIFruArea: use default destructor Use default destructor now that there isn't a raw pointer. Change-Id: I3b28a99ca27a9e5dd15de9809e882cab02eedf75 Signed-off-by: Patrick Venture --- fru_area.cpp | 7 ------- fru_area.hpp | 4 +--- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/fru_area.cpp b/fru_area.cpp index 45d4008..389166c 100644 --- a/fru_area.cpp +++ b/fru_area.cpp @@ -63,10 +63,3 @@ void IPMIFruArea::updateDbusPaths(const char* bus, const char* path, objectPath = path; interfaceName = intf; } - -//------------------- -// Destructor -//------------------- -IPMIFruArea::~IPMIFruArea() -{ -} diff --git a/fru_area.hpp b/fru_area.hpp index 5294be2..abfa083 100644 --- a/fru_area.hpp +++ b/fru_area.hpp @@ -15,14 +15,12 @@ class IPMIFruArea { public: IPMIFruArea() = delete; + ~IPMIFruArea() = default; // constructor IPMIFruArea(const uint8_t fruID, const ipmi_fru_area_type type, bool bmcOnlyFru = false); - // Destructor - virtual ~IPMIFruArea(); - // Sets the present bit inline void setPresent(const bool present) { -- cgit v1.2.1