Skip to content

Commit bea599b

Browse files
committed
remove unnecessary changes to InitializationScript
1 parent 53b8f02 commit bea599b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

dotnet/src/webdriver/InitializationScript.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using System;
2120
using System.Globalization;
2221

2322
#nullable enable
@@ -27,7 +26,7 @@ namespace OpenQA.Selenium
2726
/// <summary>
2827
/// Represents a JavaScript script that is loaded and run on every document load.
2928
/// </summary>
30-
public class InitializationScript : IEquatable<InitializationScript>
29+
public class InitializationScript
3130
{
3231
internal InitializationScript(string scriptId, string scriptName, string scriptSource)
3332
{
@@ -51,12 +50,6 @@ internal InitializationScript(string scriptId, string scriptName, string scriptS
5150
/// </summary>
5251
public string ScriptSource { get; }
5352

54-
/// <inheritdoc />
55-
public bool Equals(InitializationScript? other)
56-
{
57-
return other is not null && this.ScriptId.Equals(other.ScriptId) && this.ScriptName.Equals(other.ScriptName) && this.ScriptSource.Equals(other.ScriptSource);
58-
}
59-
6053
/// <summary>
6154
/// Indicates whether the current <see cref="InitializationScript"/> is equal to another <see cref="InitializationScript"/> of the same type.
6255
/// </summary>

0 commit comments

Comments
 (0)