Skip to content

Commit

Permalink
[C#] Remove Obsolete for SelectiveRegion (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
FriggaHel authored Jun 14, 2024
1 parent 9db1380 commit a0ba860
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions visual-dotnet/SauceLabs.Visual/Models/SelectiveRegion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace SauceLabs.Visual.Models
/// <summary>
/// SelectiveRegion describe a region where change kind can be filtered.
/// </summary>
[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public class SelectiveRegion
{
internal Region? Region { get; }
Expand All @@ -32,49 +31,41 @@ private SelectiveRegion(Region region, DiffingOption? enableOnly, DiffingOption?
DisableOnly = disableOnly;
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion EnabledFor(IWebElement element)
{
return new SelectiveRegion(element, null, null);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion EnabledFor(IWebElement element, DiffingOption flags)
{
return new SelectiveRegion(element, flags, null);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion EnabledFor(Region region)
{
return new SelectiveRegion(region, DiffingOption.None, null);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion EnabledFor(Region region, DiffingOption flags)
{
return new SelectiveRegion(region, flags, null);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion DisabledFor(IWebElement element)
{
return new SelectiveRegion(element, null, DiffingOption.None);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion DisabledFor(IWebElement element, DiffingOption flags)
{
return new SelectiveRegion(element, null, flags);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion DisabledFor(Region region)
{
return new SelectiveRegion(region, null, DiffingOption.None);
}

[Obsolete("WARNING: This API is currently unstable. It may be changed at anytime")]
public static SelectiveRegion DisabledFor(Region region, DiffingOption flags)
{
return new SelectiveRegion(region, null, flags);
Expand Down

0 comments on commit a0ba860

Please sign in to comment.