diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 39672ca..4599b2b 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -476,11 +476,6 @@ function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE) * \Drupal::service('messenger')->getMessagesByType() instead. */ function drupal_get_messages($type = NULL, $clear_queue = TRUE) { - // Workaround for code that can not check if the service exists. - if (!\Drupal::hasService('messenger')) { - return []; - } - /** @var \Drupal\Core\Messenger\MessengerInterface $messenger */ $messenger = \Drupal::service('messenger');