diff --git a/includes/stream_wrapper_registry.inc b/includes/stream_wrapper_registry.inc index f411215252..4e5ee18d78 100644 --- a/includes/stream_wrapper_registry.inc +++ b/includes/stream_wrapper_registry.inc @@ -129,7 +129,6 @@ class DrupalStreamWrapperRegistry { * does not have a registered handler. */ public static function getValidStreamScheme($uri) { - if (!$scheme = self::getStreamScheme($uri)) { // URI doesn't even contain a scheme return FALSE; @@ -187,7 +186,6 @@ class DrupalStreamWrapperRegistry { * FALSE is returned if no registered handler could be found. */ public static function getInstanceByUri($uri) { - $class = self::getClassName(self::getStreamScheme($uri)); if (class_exists($class)) { $instance = new $class; @@ -219,7 +217,6 @@ class DrupalStreamWrapperRegistry { * FALSE is returned if no registered handler could be found. */ public static function getInstanceByScheme($scheme) { - return self::getInstanceByUri($scheme . '://'); }