diff --git a/code/utility/ContentReview.php b/code/utility/ContentReview.php deleted file mode 100644 index 465a102..0000000 --- a/code/utility/ContentReview.php +++ /dev/null @@ -1,41 +0,0 @@ -ContentReviewType == 'Custom') { - return $page; - } - if($page->ContentReviewType == 'Disabled') { - return false; - } - - // $page is inheriting it's settings from it's parent, find - // the first valid parent with a valid setting - while($parent = $page->Parent()) { - // Root page, use siteconfig - if(!$parent->exists()) { - return SiteConfig::current_site_config(); - } - if($parent->ContentReviewType == 'Custom') { - return $parent; - } - if($parent->ContentReviewType == 'Disabled') { - return false; - } - $page = $parent; - } - throw new Exception('This shouldn\'t really happen, as per usual developer logic.'); - } - -}