cpp-common/bt2: remove useless copy operations
[babeltrace.git] / src / cpp-common / bt2 / field-path.hpp
index 69f48455b2c325ec3e91258ee7c6aafe12e7c8ea..300b7376091cdecf9049c06b52768e30e336c653 100644 (file)
@@ -36,16 +36,6 @@ public:
     {
     }
 
-    ConstFieldPathItem(const ConstFieldPathItem& fpItem) noexcept : _ThisBorrowedObject {fpItem}
-    {
-    }
-
-    ConstFieldPathItem& operator=(const ConstFieldPathItem& fpItem) noexcept
-    {
-        _ThisBorrowedObject::operator=(fpItem);
-        return *this;
-    }
-
     FieldPathItemType type() const noexcept
     {
         return static_cast<FieldPathItemType>(this->_libType());
@@ -84,17 +74,6 @@ public:
         BT_ASSERT_DBG(this->isIndex());
     }
 
-    ConstIndexFieldPathItem(const ConstIndexFieldPathItem& fpItem) noexcept :
-        ConstFieldPathItem {fpItem}
-    {
-    }
-
-    ConstIndexFieldPathItem& operator=(const ConstIndexFieldPathItem& fpItem) noexcept
-    {
-        ConstFieldPathItem::operator=(fpItem);
-        return *this;
-    }
-
     std::uint64_t index() const noexcept
     {
         return bt_field_path_item_index_get_index(this->libObjPtr());
@@ -142,16 +121,6 @@ public:
     {
     }
 
-    ConstFieldPath(const ConstFieldPath& fieldPath) noexcept : _ThisBorrowedObject {fieldPath}
-    {
-    }
-
-    ConstFieldPath& operator=(const ConstFieldPath& fieldPath) noexcept
-    {
-        _ThisBorrowedObject::operator=(fieldPath);
-        return *this;
-    }
-
     Scope rootScope() const noexcept
     {
         return static_cast<Scope>(bt_field_path_get_root_scope(this->libObjPtr()));
This page took 0.024933 seconds and 4 git commands to generate.