]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Page.php
Added per-item recycle-bin delete and restore
[bookstack] / app / Entities / Page.php
index 32ba2981d807e7a2b2b7a35c7984e523a82448ca..8ad05e7aa7393ee1fcb3dafee9f12bc71a437ffa 100644 (file)
@@ -49,14 +49,6 @@ class Page extends BookChild
         return $array;
     }
 
-    /**
-     * Get the parent item
-     */
-    public function parent(): Entity
-    {
-        return $this->chapter_id ? $this->chapter : $this->book;
-    }
-
     /**
      * Get the chapter that this page is in, If applicable.
      * @return BelongsTo