From ec9e2b5ffd423c46eeaa3bf1b96047a8147e7bb1 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Sun, 13 Jul 2014 10:10:20 +0100
Subject: [PATCH] Issue #2301601 by joshi.rohit100: Remove
 drupal_validate_form() as it is deprecated.

---
 core/includes/form.inc                               | 12 ------------
 .../system/tests/modules/form_test/form_test.module  |  2 +-
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/core/includes/form.inc b/core/includes/form.inc
index 18d79e7b94bd..1b58d1202ce5 100644
--- a/core/includes/form.inc
+++ b/core/includes/form.inc
@@ -263,18 +263,6 @@ function drupal_process_form($form_id, &$form, &$form_state) {
   \Drupal::formBuilder()->processForm($form_id, $form, $form_state);
 }
 
-/**
- * Validates user-submitted form data in the $form_state array.
- *
- * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
- *   Use \Drupal::formBuilder()->validateForm().
- *
- * @see \Drupal\Core\Form\FormValidatorInterface::validateForm().
- */
-function drupal_validate_form($form_id, &$form, &$form_state) {
-  \Drupal::formBuilder()->validateForm($form_id, $form, $form_state);
-}
-
 /**
  * Redirects the user to a URL after a form has been processed.
  *
diff --git a/core/modules/system/tests/modules/form_test/form_test.module b/core/modules/system/tests/modules/form_test/form_test.module
index 340c1f93035b..34e624257862 100644
--- a/core/modules/system/tests/modules/form_test/form_test.module
+++ b/core/modules/system/tests/modules/form_test/form_test.module
@@ -81,7 +81,7 @@ function system_form_form_test_alter_form_alter(&$form, &$form_state) {
 }
 
 /**
- * Form builder for testing drupal_validate_form().
+ * Form builder for testing \Drupal\Core\Form\FormValidatorInterface::validateForm().
  *
  * Serves for testing form processing and alterations by form validation
  * handlers, especially for the case of a validation error:
-- 
GitLab