diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-02-28 17:38:09 +1030 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2018-04-04 00:31:48 +0930 |
commit | 889ab5189bf003b334a3c903baf359440ce38d4d (patch) | |
tree | 13458519889f185109592b88f67bf890e9b9745e | |
parent | ad343101c59beb0c2b0c1033f031ff76ff2237d7 (diff) | |
download | phosphor-mboxd-889ab5189bf003b334a3c903baf359440ce38d4d.tar.gz phosphor-mboxd-889ab5189bf003b334a3c903baf359440ce38d4d.zip |
pnor_partition: Remove redundant Descriptor class
Change-Id: Ic15daa8198df660d7c2e7c26921ce43e671d5c38
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r-- | pnor_partition.hpp | 41 |
1 files changed, 0 insertions, 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 { |