pnor_partition: Remove redundant Descriptor class
Change-Id: Ic15daa8198df660d7c2e7c26921ce43e671d5c38
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
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 @@
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
{