Remove dead field in Uri (#33044)
authorMiha Zupan <mihazupan.zupan1@gmail.com>
Mon, 4 May 2020 22:47:24 +0000 (00:47 +0200)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 22:47:24 +0000 (00:47 +0200)
commit0c211fb5d00edab5fc2f514dba97d6267d578fc8
tree348dabcdb9f3a4c021a40a9d39057a4056d30e63
parentf6d301481ff8040febc379cd07c74275fb8578e8
Remove dead field in Uri (#33044)

* Remove dead _dnsSafeHost field on Uri

* Make Uri._iriParsing a property

* Simplify Uri OriginalString getter

* Simplify Uri.ToString()

* Remove duplicate IriParsing checks

* Remove UseOrigUncdStrOffset flag

* Cache IriParsing lookup to a local in CheckCanonical

* Update comments referring to m_ fields

* Remove more redundant checks

* Sort usings

* Remove unnecesarry AggressiveInlining attribute
src/libraries/System.Private.Uri/src/System/Uri.cs
src/libraries/System.Private.Uri/src/System/UriExt.cs