Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Commit 2640f83

Browse files
committed
Merge pull request #2251 from VQComms/url-iclonable-replacement
Ifdefed out usage of ICloneable interface in Url class
2 parents 462cf02 + 6788d69 commit 2640f83

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Nancy/Url.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Nancy
99
/// Represents a full Url of the form scheme://hostname:port/basepath/path?query
1010
/// </summary>
1111
/// <remarks>Since this is for internal use, and fragments are not passed to the server, fragments are not supported.</remarks>
12-
public sealed class Url : ICloneable
12+
public sealed class Url
1313
{
1414
private string basePath;
1515

@@ -122,15 +122,6 @@ public override string ToString()
122122
.ToString();
123123
}
124124

125-
/// <summary>
126-
/// Clones the url.
127-
/// </summary>
128-
/// <returns>Returns a new cloned instance of the url.</returns>
129-
object ICloneable.Clone()
130-
{
131-
return this.Clone();
132-
}
133-
134125
/// <summary>
135126
/// Clones the url.
136127
/// </summary>

0 commit comments

Comments
 (0)