Skip to content

Commit

Permalink
remove unnecessary changes to InitializationScript
Browse files Browse the repository at this point in the history
  • Loading branch information
RenderMichael committed Feb 3, 2025
1 parent 53b8f02 commit bea599b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions dotnet/src/webdriver/InitializationScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
// under the License.
// </copyright>

using System;
using System.Globalization;

#nullable enable
Expand All @@ -27,7 +26,7 @@ namespace OpenQA.Selenium
/// <summary>
/// Represents a JavaScript script that is loaded and run on every document load.
/// </summary>
public class InitializationScript : IEquatable<InitializationScript>
public class InitializationScript
{
internal InitializationScript(string scriptId, string scriptName, string scriptSource)
{
Expand All @@ -51,12 +50,6 @@ internal InitializationScript(string scriptId, string scriptName, string scriptS
/// </summary>
public string ScriptSource { get; }

/// <inheritdoc />
public bool Equals(InitializationScript? other)
{
return other is not null && this.ScriptId.Equals(other.ScriptId) && this.ScriptName.Equals(other.ScriptName) && this.ScriptSource.Equals(other.ScriptSource);
}

/// <summary>
/// Indicates whether the current <see cref="InitializationScript"/> is equal to another <see cref="InitializationScript"/> of the same type.
/// </summary>
Expand Down

0 comments on commit bea599b

Please sign in to comment.