summaryrefslogtreecommitdiff
path: root/core/libraries/ORM_MPTT.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/ORM_MPTT.php')
-rw-r--r--core/libraries/ORM_MPTT.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php
index f59aa084..18ca86a0 100644
--- a/core/libraries/ORM_MPTT.php
+++ b/core/libraries/ORM_MPTT.php
@@ -213,14 +213,6 @@ class ORM_MPTT_Core extends ORM {
* @return ORM_MTPP
*/
function move_to($target) {
- if (!$target->is_album()) {
- throw new Exception("@todo INVALID_MOVE_TYPE $target->type");
- }
-
- if ($this->id == 1) {
- throw new Exception("@todo INVALID_SOURCE root album");
- }
-
if ($this->left <= $target->left &&
$this->right >= $target->right) {
throw new Exception("@todo INVALID_TARGET can't move item inside itself");