summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-04-01 18:56:50 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-04-01 18:56:50 -0400
commita9c27da66c9a8877a4a76d759d0a36c97ad1318a (patch)
treec7471a59249ee62c8e1908d18e5538428a901ba3 /includes/file.inc
parent83c4188cdfb9f8a6a7c0ea101f948ed2101ef9d1 (diff)
downloadbrdo-a9c27da66c9a8877a4a76d759d0a36c97ad1318a.tar.gz
brdo-a9c27da66c9a8877a4a76d759d0a36c97ad1318a.tar.bz2
Issue #1049050 by mfb, TwoD, David_Rothstein, jpsoto: Removed dead code in file_stream_wrapper_uri_normalize().
Diffstat (limited to 'includes/file.inc')
-rw-r--r--includes/file.inc9
1 files changed, 2 insertions, 7 deletions
diff --git a/includes/file.inc b/includes/file.inc
index 8389ab8a2..e9a567e9c 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -282,10 +282,6 @@ function file_stream_wrapper_uri_normalize($uri) {
$uri = $scheme . '://' . $target;
}
}
- else {
- // The default scheme is file://
- $url = 'file://' . $uri;
- }
return $uri;
}
@@ -834,9 +830,8 @@ function file_valid_uri($uri) {
* A string specifying the filepath or URI of the source file.
* @param $destination
* A URI containing the destination that $source should be copied to. The
- * URI may be a bare filepath (without a scheme) and in that case the default
- * scheme (file://) will be used. If this value is omitted, Drupal's default
- * files scheme will be used, usually "public://".
+ * URI may be a bare filepath (without a scheme). If this value is omitted,
+ * Drupal's default files scheme will be used, usually "public://".
* @param $replace
* Replace behavior when the destination file already exists:
* - FILE_EXISTS_REPLACE - Replace the existing file.