From dc0b7cd3d2f50d1b31f55e06270ab3c643d10baf Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 9 Jan 2015 13:25:46 -0700 Subject: [PATCH] removed some unused commands --- system/src/Grav/Common/Page/Page.php | 34 ---------------------------- 1 file changed, 34 deletions(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index a3d9123e9..9909c2568 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1550,32 +1550,6 @@ class Page return $results; } - /** - * @throws \Exception - * @deprecated - */ - public function subPages() - { - throw new \Exception('Use $page->collection() instead.'); - } - - /** - * Sorting of sub-pages based on how to sort and the order. - * - * default - is the order based on the filesystem, ie 01.Home before 02.Advark - * title - is the order based on the title set in the pages - * date - is the order based on the date set in the pages - * modified - is the order based on the last modified date of the pages - * slug - is the order based on the URL slug - * - * @param string $order_by The order by which the sub-pages should be sorted "default", "title", "date", "folder" - * @param string $order_dir The order, either "asc" or "desc" - * @return $this|bool This Page object if sub-pages exist, else false - */ - public function sort($order_by = null, $order_dir = null) - { - throw new \Exception('Use $page->children()->sort() instead.'); - } /** * Returns whether or not this Page object has a .md file associated with it or if its just a directory. @@ -1611,14 +1585,6 @@ class Page return $file && $file->exists(); } - /** - * @throws \Exception - */ - public function hasSubPages() - { - throw new \Exception('Use $page->collection()->count() instead.'); - } - /** * Process the Markdown if processing is enabled for it. If not, process as 'raw' which simply strips the * header YAML from the raw, and sends back the content portion. i.e. the bit below the header.