Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Stop using deprecated API #1304

Merged

Conversation

emteknetnz
Copy link
Member

@@ -21,11 +21,6 @@ class FileSearchFormFactory implements FormFactory
use Extensible;
use Injectable;

public function __construct()
{
$this->constructExtensions();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing call to deprecated noop method Extensible::constructExtensions()

@@ -34,7 +34,6 @@ public function updateUsageExcludedClasses(array &$excludedClasses)
*/
public function updateUsage(ArrayList &$usage, DataObject &$record)
{
Deprecation::notice('1.7.0', 'Use updateUsageExcludedClasses() instead');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This deprecation notice just creates noise and doesn't need to be here since it's an extension method that's never called directly

@emteknetnz emteknetnz marked this pull request as ready for review November 9, 2022 01:26
@sabina-talipova sabina-talipova merged commit 2d2e10f into silverstripe:1 Nov 10, 2022
@sabina-talipova sabina-talipova deleted the pulls/1/stop-depr branch November 10, 2022 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants