Skip to content

Commit

Permalink
Remove unused part
Browse files Browse the repository at this point in the history
  • Loading branch information
FriggaHel committed Mar 18, 2024
1 parent 9ca65c1 commit d63de87
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions visual-dotnet/SauceLabs.Visual/Region.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d63de87

Please sign in to comment.