From dee4b3f0357bf708acda020dc65985248032382c Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 19 Jan 2016 14:08:12 +0000
Subject: [PATCH] Issue #2648198 by pfrenssen: Remove unused argument
 $install_state in drupal_check_profile()

---
 core/includes/install.core.inc | 2 +-
 core/includes/install.inc      | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index cadc061c7321..ffe27e0c43ed 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1961,7 +1961,7 @@ function install_check_requirements($install_state) {
   $profile = $install_state['parameters']['profile'];
 
   // Check the profile requirements.
-  $requirements = drupal_check_profile($profile, $install_state);
+  $requirements = drupal_check_profile($profile);
 
   if ($install_state['settings_verified']) {
     return $requirements;
diff --git a/core/includes/install.inc b/core/includes/install.inc
index c9fd75d211e1..bae87d7699de 100644
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
@@ -921,13 +921,11 @@ function drupal_requirements_url($severity) {
  *
  * @param string $profile
  *   Name of installation profile to check.
- * @param array $install_state
- *   The current state in the install process.
  *
  * @return array
  *   Array of the installation profile's requirements.
  */
-function drupal_check_profile($profile, array $install_state) {
+function drupal_check_profile($profile) {
   $info = install_profile_info($profile);
 
   // Collect requirement testing results.
-- 
GitLab