Skip to content

Commit

Permalink
API Remove deprecated code (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabina-talipova authored Jan 25, 2023
1 parent 92c31b4 commit 412cfeb
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/Controllers/CronTaskController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace SilverStripe\CronTask\Controllers;

use SilverStripe\Dev\Deprecation;
use Cron\CronExpression;
use DateTime;
use Exception;
Expand All @@ -26,35 +25,13 @@
*/
class CronTaskController extends Controller
{
/**
* If this controller is in quiet mode
*
* @deprecated 2.5.0 Use $verbosity instead
*
* @var bool
*/
protected $quiet = false;

/**
* Tell the controller how noisy it may be
*
* @var int A number from 0 to 2
*/
protected $verbosity = 1;

/**
* Tell the controller how noisy it may be
* @deprecated 2.5.0 Use setVerbosity() instead
* @param bool $quiet If set to true this controller will not emit debug noise
*/
public function setQuiet($quiet)
{
Deprecation::notice('2.5.0', 'Use setVerbosity() instead');
$this->setVerbosity($quiet ? 0 : 1);

$this->quiet = (bool) $quiet;
}

/**
* Tell the controller how noisy it may be
*
Expand Down

0 comments on commit 412cfeb

Please sign in to comment.