Removing deprecated container class argument to DataObject::get()

This commit is contained in:
Sean Harvey 2012-11-15 11:55:10 +13:00
parent 3a198c32d5
commit e1c5f084ad

View File

@ -2666,13 +2666,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
return $result;
}
// Todo: Determine if we can deprecate for 3.0.0 and use DI or something instead
// Todo: Make the $containerClass method redundant
if($containerClass != 'DataList') {
Deprecation::notice('3.0', 'DataObject::get() - $containerClass argument is deprecated.',
Deprecation::SCOPE_GLOBAL);
}
$result = DataList::create($callerClass)->where($filter)->sort($sort);
if($limit && strpos($limit, ',') !== false) {