diff --git a/core/includes/form.inc b/core/includes/form.inc
index 8ac94af..2dbcdad 100644
--- a/core/includes/form.inc
+++ b/core/includes/form.inc
@@ -18,18 +18,6 @@
 use Symfony\Component\HttpFoundation\RedirectResponse;
 
 /**
- * Retrieves, populates, and processes a form.
- *
- * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
- *   Use \Drupal::formBuilder()->submitForm().
- *
- * @see \Drupal\Core\Form\FormBuilderInterface::submitForm().
- */
-function drupal_form_submit($form_arg, FormStateInterface $form_state) {
-  \Drupal::formBuilder()->submitForm($form_arg, $form_state);
-}
-
-/**
  * Prepares variables for select element templates.
  *
  * Default template: select.html.twig.
diff --git a/core/scripts/generate-d7-content.sh b/core/scripts/generate-d7-content.sh
index 9925fe1..33a34a0 100644
--- a/core/scripts/generate-d7-content.sh
+++ b/core/scripts/generate-d7-content.sh
@@ -266,7 +266,7 @@
     $form_state = array();
     $form_state['values']['choice'] = $choices[$c];
     $form_state['values']['op'] = t('Vote');
-    drupal_form_submit('poll_view_voting', $form_state, $node);
+    \Drupal::formBuilder()->submitForm('poll_view_voting', $form_state);
   }
 }
 
