Merge pull request #1092 from halkyon/removing_deprecated

Removing deprecated method
This commit is contained in:
Will Rossiter 2014-08-31 17:34:55 +12:00
commit b838f8161f

View File

@ -1844,19 +1844,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
return $items; return $items;
} }
/**
* Return the number of {@link DependentPages()}
*
* @deprecated 3.1 Use DependentPages()->Count() instead.
*
* @param bool $includeVirtuals Set to false to exlcude virtual pages.
* @return ArrayList
*/
public function DependentPagesCount($includeVirtuals = true) {
Deprecation::notice('3.1', 'Use SiteTree->DependentPages()->Count() instead.');
return $this->DependentPages($includeVirtuals)->Count();
}
/** /**
* Return all virtual pages that link to this page * Return all virtual pages that link to this page
*/ */