From d63de87af0092c9a0b03b9ca71ae2ab0baeee249 Mon Sep 17 00:00:00 2001 From: Felix P Date: Mon, 18 Mar 2024 14:51:22 +0100 Subject: [PATCH] Remove unused part --- visual-dotnet/SauceLabs.Visual/Region.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/visual-dotnet/SauceLabs.Visual/Region.cs b/visual-dotnet/SauceLabs.Visual/Region.cs index d5c22392..33e87cfe 100644 --- a/visual-dotnet/SauceLabs.Visual/Region.cs +++ b/visual-dotnet/SauceLabs.Visual/Region.cs @@ -43,20 +43,6 @@ public static Region FromName(string name) }; } - public static Region FromWebDriverUrl(string url) - { - var parsedUrl = new Uri(url); - return parsedUrl.Host switch - { - "ondemand.saucelabs.com" => UsWest1, - "ondemand.us-west-1.saucelabs.com" => UsWest1, - "ondemand.eu-central-1.saucelabs.com" => EuCentral1, - "ondemand.us-east-4.saucelabs.com" => UsEast4, - "ondemand.staging.saucelabs.net" => Staging, - _ => throw new VisualClientException($"{parsedUrl.Host} is not recognized as Sauce Labs region") - }; - } - public static Region UsWest1 => new Region("https://api.us-west-1.saucelabs.com/v1/visual/graphql"); public static Region UsEast4 => new Region("https://api.us-east-4.saucelabs.com/v1/visual/graphql"); public static Region EuCentral1 => new Region("https://api.eu-central-1.saucelabs.com/v1/visual/graphql");