summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/media_object.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libcamera/media_object.cpp b/src/libcamera/media_object.cpp
index b7bf048c..05603663 100644
--- a/src/libcamera/media_object.cpp
+++ b/src/libcamera/media_object.cpp
@@ -191,15 +191,6 @@ MediaPad::MediaPad(const struct media_v2_pad *pad, MediaEntity *entity)
{
}
-MediaPad::~MediaPad()
-{
- /*
- * Don't delete the links as we only borrow the reference owned by
- * MediaDevice.
- */
- links_.clear();
-}
-
/**
* \fn MediaPad::index()
* \brief Retrieve the pad index
@@ -371,15 +362,6 @@ MediaEntity::MediaEntity(MediaDevice *dev,
{
}
-MediaEntity::~MediaEntity()
-{
- /*
- * Don't delete the pads as we only borrow the reference owned by
- * MediaDevice.
- */
- pads_.clear();
-}
-
/**
* \brief Add \a pad to the entity's list of pads
* \param[in] pad The pad to add to the list