diff --git a/core/includes/install.inc b/core/includes/install.inc
index 4c9c60c..68c88f6 100644
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
@@ -109,24 +109,6 @@ function drupal_install_profile_distribution_name() {
 }
 
 /**
- * Auto detect the base_url with PHP predefined variables.
- *
- * @param $file
- *   The name of the file calling this function so we can strip it out of
- *   the URI when generating the base_url.
- * @return
- *   The auto-detected $base_url that should be configured in settings.php
- */
-function drupal_detect_baseurl($file = 'core/install.php') {
-  $proto = $_SERVER['HTTPS'] ? 'https://' : 'http://';
-  $host = $_SERVER['SERVER_NAME'];
-  $port = ($_SERVER['SERVER_PORT'] == 80 ? '' : ':' . $_SERVER['SERVER_PORT']);
-  $dir = str_replace("/$file", '', $_SERVER['SCRIPT_NAME']);
-
-  return "$proto$host$port$dir";
-}
-
-/**
  * Detect all supported databases that are compiled into PHP.
  *
  * @return
