Skip to content

Commit 773dd0e

Browse files
committed
Remove ToString() from RemoteSessionSettings and ReturnedCapabilities
1 parent 76f3dc5 commit 773dd0e

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

dotnet/src/webdriver/Internal/ReturnedCapabilities.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
using System.Collections.Generic;
2222
using System.Collections.ObjectModel;
2323
using System.Globalization;
24-
using System.Text.Json;
2524

2625
namespace OpenQA.Selenium.Internal
2726
{
@@ -147,14 +146,5 @@ public Dictionary<string, object> ToDictionary()
147146
// we might want to copy/clone it instead.
148147
return this.capabilities;
149148
}
150-
151-
/// <summary>
152-
/// Return a string of capabilities being used
153-
/// </summary>
154-
/// <returns>String of capabilities being used</returns>
155-
public override string ToString()
156-
{
157-
return JsonSerializer.Serialize(this.capabilities, new JsonSerializerOptions { WriteIndented = true });
158-
}
159149
}
160150
}

dotnet/src/webdriver/Remote/RemoteSessionSettings.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
using System;
2222
using System.Collections.Generic;
2323
using System.Globalization;
24-
using System.Text.Json;
2524

2625
namespace OpenQA.Selenium
2726
{
@@ -252,15 +251,6 @@ public Dictionary<string, object> ToDictionary()
252251
return capabilitiesDictionary;
253252
}
254253

255-
/// <summary>
256-
/// Return a string representation of the remote session settings to be sent.
257-
/// </summary>
258-
/// <returns>String representation of the remote session settings to be sent.</returns>
259-
public override string ToString()
260-
{
261-
return JsonSerializer.Serialize(this.ToDictionary(), new JsonSerializerOptions { WriteIndented = true });
262-
}
263-
264254
internal DriverOptions GetFirstMatchDriverOptions(int firstMatchIndex)
265255
{
266256
if (firstMatchIndex < 0 || firstMatchIndex >= this.firstMatchOptions.Count)

0 commit comments

Comments
 (0)