From 35bcf69c017f7b18407ec075cedcb7ee88e12754 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 15 Nov 2012 14:30:47 +1300 Subject: [PATCH] Removed deprecated Register::register() and unregister() Report automatically includes reports instead, and add_excluded_reports() can be used to exclude certain reports --- code/reports/Report.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/code/reports/Report.php b/code/reports/Report.php index 35fafadf..4a94569f 100644 --- a/code/reports/Report.php +++ b/code/reports/Report.php @@ -137,28 +137,6 @@ class SS_Report extends ViewableData { ); } - /** - * @deprecated 3.0 - * All subclasses of SS_Report now appear in the report admin, no need to register or unregister. - * - * Register a report. - * @param $list The list to add the report to: "ReportAdmin" or "SideReports" - * @param $reportClass The class of the report to add. - * @param $priority The priority. Higher numbers will appear furhter up in the reports list. - * The default value is zero. - */ - static public function register($list, $reportClass, $priority = 0) { - Deprecation::notice('3.0', 'All subclasses of SS_Report now appear in the report admin, no need to register'); - } - - /** - * @deprecated 3.0 - * All subclasses of SS_Report now appear in the report admin, no need to register or unregister. - */ - static public function unregister($list, $reportClass) { - self::add_excluded_reports($reportClass); - } - /** * Exclude certain reports classes from the list of Reports in the CMS * @param $reportClass Can be either a string with the report classname or an array of reports classnames