summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pnor_partition.hpp41
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
{
OpenPOWER on IntegriCloud