From c1da0f0434062ecd8a033e985960b0fdac99320f Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Tue, 20 Jun 2017 15:10:02 +0200 Subject: [PATCH] Removed obsolete property. --- src/OpenTK/DisplayDevice.cs | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/src/OpenTK/DisplayDevice.cs b/src/OpenTK/DisplayDevice.cs index bfd3960a..6d5e354c 100644 --- a/src/OpenTK/DisplayDevice.cs +++ b/src/OpenTK/DisplayDevice.cs @@ -6,7 +6,7 @@ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to +// in the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of // the Software, and to permit persons to whom the Software is furnished to do // so, subject to the following conditions: @@ -51,7 +51,7 @@ namespace OpenTK DisplayResolution original_resolution; List available_resolutions = new List(); IList available_resolutions_readonly; - + internal object Id; // A platform-specific id for this monitor static readonly object display_lock = new object(); @@ -287,31 +287,6 @@ namespace OpenTK #endregion - #region public static IList AvailableDisplays - - /// - /// Gets the list of available objects. - /// This function allocates memory. - /// - [Obsolete("Use GetDisplay(DisplayIndex) instead.")] - public static IList AvailableDisplays - { - get - { - List displays = new List(); - for (int i = 0; i < 6; i++) - { - DisplayDevice dev = GetDisplay(DisplayIndex.First + i); - if (dev != null) - displays.Add(dev); - } - - return displays.AsReadOnly(); - } - } - - #endregion - #region public static DisplayDevice Default /// Gets the default (primary) display of this system.