Skip to content

Commit

Permalink
API Remove deprecated code (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabina-talipova authored Jan 25, 2023
1 parent b181ea3 commit 56b3753
Showing 1 changed file with 0 additions and 61 deletions.
61 changes: 0 additions & 61 deletions src/EnvironmentChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use SilverStripe\Control\RequestHandler;
use SilverStripe\Core\Environment;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\Deprecation;
use SilverStripe\Security\Member;
use SilverStripe\Security\Permission;
use SilverStripe\Security\Security;
Expand Down Expand Up @@ -274,64 +273,4 @@ public function setIncludeDetails($includeDetails)

return $this;
}

/**
* @deprecated 2.0.0 Use config API instead
* @param string $from
*/
public static function set_from_email_address($from)
{
Deprecation::notice('2.0.0', 'Use config API instead');
static::config()->set('from_email_address', $from);
}

/**
* @deprecated 2.0.0 Use config API instead
* @return null|string
*/
public static function get_from_email_address()
{
Deprecation::notice('2.0.0', 'Use config API instead');
return static::config()->get('from_email_address');
}

/**
* @deprecated 2.0.0 Use config API instead
* @param string $to
*/
public static function set_to_email_address($to)
{
Deprecation::notice('2.0.0', 'Use config API instead');
static::config()->set('to_email_address', $to);
}

/**
* @deprecated 2.0.0 Use config API instead
* @return null|string
*/
public static function get_to_email_address()
{
Deprecation::notice('2.0.0', 'Use config API instead');
return static::config()->get('to_email_address');
}

/**
* @deprecated 2.0.0 Use config API instead
* @param bool $results
*/
public static function set_email_results($results)
{
Deprecation::notice('2.0.0', 'Use config API instead');
static::config()->set('email_results', $results);
}

/**
* @deprecated 2.0.0 Use config API instead
* @return bool
*/
public static function get_email_results()
{
Deprecation::notice('2.0.0', 'Use config API instead');
return static::config()->get('email_results');
}
}

0 comments on commit 56b3753

Please sign in to comment.