Skip to content

Commit

Permalink
Removed Attribute.Get (not used)
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Oct 10, 2023
1 parent 2e5e3f9 commit e7dd0c1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Terminal.Gui/Drawing/Color.cs
Original file line number Diff line number Diff line change
Expand Up @@ -732,18 +732,6 @@ public bool Equals (Attribute other)
/// <inheritdoc />
public override int GetHashCode () => HashCode.Combine (Value, Foreground, Background);

/// <summary>
/// Gets the current <see cref="Attribute"/> from the driver.
/// </summary>
/// <returns>The current attribute.</returns>
public static Attribute Get ()
{
if (Application.Driver == null) {
throw new InvalidOperationException ("The Application has not been initialized");
}
return Application.Driver.GetAttribute ();
}

/// <summary>
/// If <see langword="true"/> the attribute has been initialized by a <see cref="ConsoleDriver"/> and
/// thus has <see cref="Value"/> that is valid for that driver. If <see langword="false"/> the <see cref="Foreground"/>
Expand Down

0 comments on commit e7dd0c1

Please sign in to comment.