cleanup: remove legacy code

This commit is contained in:
Matthew Penner 2021-01-14 11:13:16 -07:00
parent a71392d632
commit b1c7b91313
5 changed files with 0 additions and 55 deletions

View file

@ -51,20 +51,4 @@ class Utilities
sprintf('%s %s %s * %s', $minute, $hour, $dayOfMonth, $dayOfWeek)
)->getNextRunDate());
}
/**
* @param string $name
* @param mixed $default
* @return string
*/
public static function checked(string $name, $default)
{
$errors = session('errors');
if (isset($errors) && $errors instanceof ViewErrorBag && $errors->any()) {
return old($name) ? 'checked' : '';
}
return ($default) ? 'checked' : '';
}
}