Browse Source

Removed Attribute.Get (not used)

Tigger Kindel 1 year ago
parent
commit
c2b58b285b
1 changed files with 0 additions and 12 deletions
  1. 0 12
      Terminal.Gui/Drawing/Color.cs

+ 0 - 12
Terminal.Gui/Drawing/Color.cs

@@ -732,18 +732,6 @@ namespace Terminal.Gui {
 		/// <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"/>