From 044299d667d617ff29cfccce4cfefeafd9cb8d20 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 4 May 2008 18:54:51 +0000 Subject: [PATCH] Removed unused DestroyWindow function. --- Source/OpenTK/GameWindow.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Source/OpenTK/GameWindow.cs b/Source/OpenTK/GameWindow.cs index 3332d93c..d31f1d5a 100644 --- a/Source/OpenTK/GameWindow.cs +++ b/Source/OpenTK/GameWindow.cs @@ -436,24 +436,6 @@ namespace OpenTK #endif - - #region public void DestroyWindow() - - /// - /// Destroys the GameWindow. The Destroy event is raised before destruction commences - /// (while the opengl context still exists), to allow resource cleanup. - /// - public void DestroyWindow() - { - if (disposed) throw new ObjectDisposedException("GameWindow"); - if (Exists) - glWindow.DestroyWindow(); - else - throw new ApplicationException("Tried to destroy non-existent window."); - } - - #endregion - #region void Run() ///