From 889ab5189bf003b334a3c903baf359440ce38d4d Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Wed, 28 Feb 2018 17:38:09 +1030 Subject: pnor_partition: Remove redundant Descriptor class Change-Id: Ic15daa8198df660d7c2e7c26921ce43e671d5c38 Signed-off-by: Andrew Jeffery --- pnor_partition.hpp | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/pnor_partition.hpp b/pnor_partition.hpp index 87bae3b..caa930a 100644 --- a/pnor_partition.hpp +++ b/pnor_partition.hpp @@ -15,47 +15,6 @@ extern "C" { namespace openpower { -namespace file -{ - -class Descriptor -{ - private: - /** default value */ - int fd = -1; - - public: - Descriptor() = default; - Descriptor(const Descriptor&) = delete; - Descriptor& operator=(const Descriptor&) = delete; - Descriptor(Descriptor&&) = delete; - Descriptor& operator=(Descriptor&&) = delete; - - Descriptor(int fd) : fd(fd) - { - } - - ~Descriptor() - { - if (fd >= 0) - { - close(fd); - } - } - - int operator()() const - { - return fd; - } - - void set(int descriptor) - { - fd = descriptor; - } -}; - -} // namespace file - namespace virtual_pnor { -- cgit v1.2.1