diff --git a/libraries/src/Table/Nested.php b/libraries/src/Table/Nested.php index c51fa25733848..e96ce51563243 100644 --- a/libraries/src/Table/Nested.php +++ b/libraries/src/Table/Nested.php @@ -555,17 +555,8 @@ public function delete($pk = null, $children = true) /** @var Asset $asset */ $asset = Table::getInstance('Asset', 'JTable', array('dbo' => $this->getDbo())); - // Lock the table for writing. - if (!$asset->_lock()) - { - // Error message set in lock method. - return false; - } - if ($asset->loadByName($name)) { - $asset->_unlock(); - // Delete the node in assets table. if (!$asset->delete(null, $children)) { @@ -577,7 +568,6 @@ public function delete($pk = null, $children = true) else { $this->setError($asset->getError()); - $asset->_unlock(); return false; }