Removed redundant code.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 25 Jul 2014 12:29:39 +0000 (13:29 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 25 Jul 2014 12:29:39 +0000 (13:29 +0100)
mcs/class/System/System/UriHelper.cs

index b5a8e776e523caa0795c56a3a7633b717562f620..2b1bdcf0ec7cc68e72054c6c194bb3eff73cd871 100644 (file)
@@ -356,13 +356,8 @@ namespace System {
                                return false;
                        }
 
-                       if (c == '#') {
-                               //Avoid creating new fragment
-                               if (component == UriComponents.Path || component == UriComponents.Query)
-                                       return false;
-
+                       if (c == '#')
                                return false;
-                       }
 
                        if (uriFormat == ToStringUnescape && !IriParsing) {
                                if (uriKind == UriKind.Relative)
@@ -439,10 +434,6 @@ namespace System {
                                if (!SupportsQuery (scheme))
                                        return component != UriComponents.Fragment;
 
-                               //Avoid removing query
-                               if (component == UriComponents.Path)
-                                       return false;
-
                                return false;
                        }