]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/BookRepo.php
Improved sort efficiency by a factor of 10
[bookstack] / app / Repos / BookRepo.php
index 58816d738578a8c1e6d784a48b6159dc7633a514..fdc4dd8d47fc9c2611e6dba07f4c1fb6bf470da2 100644 (file)
@@ -2,6 +2,7 @@
 
 use Alpha\B;
 use BookStack\Exceptions\NotFoundException;
+use Illuminate\Database\Eloquent\Collection;
 use Illuminate\Support\Str;
 use BookStack\Book;
 use Views;
@@ -173,15 +174,6 @@ class BookRepo extends EntityRepo
         $book->delete();
     }
 
-    /**
-     * Alias method to update the book jointPermissions in the PermissionService.
-     * @param Book $book
-     */
-    public function updateBookPermissions(Book $book)
-    {
-        $this->permissionService->buildJointPermissionsForEntity($book);
-    }
-
     /**
      * Get the next child element priority.
      * @param Book $book