From c925507a492ec4e4976cf5e086ae16cbc7a53c66 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 9 Sep 2014 20:38:23 +0100
Subject: [PATCH] Issue #2335189 by ashutoshsngh: Remove form.inc
 form_get_errors().

---
 core/includes/form.inc | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/core/includes/form.inc b/core/includes/form.inc
index 7d5875e8352a..630309537fc3 100644
--- a/core/includes/form.inc
+++ b/core/includes/form.inc
@@ -84,18 +84,6 @@ function form_execute_handlers($type, &$form, FormStateInterface $form_state) {
   }
 }
 
-/**
- * Returns an associative array of all errors.
- *
- * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
- *   Use $form_state->getErrors().
- *
- * @see \Drupal\Core\Form\FormStateInterface::getErrors()
- */
-function form_get_errors(FormStateInterface $form_state) {
-  return $form_state->getErrors();
-}
-
 /**
  * Flags an element as having an error.
  *
-- 
GitLab