From 0a9d0685a11ffc382a1bb5a0ed175cfa7a47712d Mon Sep 17 00:00:00 2001 From: the_fiddler <the_fiddler@ebc5dd9b-fb1d-0410-b6f8-d24c324e9604> Date: Thu, 28 Oct 2010 09:34:13 +0000 Subject: [PATCH] Removed events that are not part of the INativeWindow interface. --- Source/OpenTK/Platform/MacOS/CarbonGLNative.cs | 2 -- Source/OpenTK/Platform/Windows/WinGLNative.cs | 6 ------ Source/OpenTK/Platform/X11/X11GLNative.cs | 4 ---- 3 files changed, 12 deletions(-) diff --git a/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs b/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs index fcf94717..a656a430 100644 --- a/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs +++ b/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs @@ -1112,8 +1112,6 @@ namespace OpenTK.Platform.MacOS #endregion - public event EventHandler<EventArgs> Load = delegate { }; - public event EventHandler<EventArgs> Unload = delegate { }; public event EventHandler<EventArgs> Move = delegate { }; public event EventHandler<EventArgs> Resize = delegate { }; public event EventHandler<CancelEventArgs> Closing = delegate { }; diff --git a/Source/OpenTK/Platform/Windows/WinGLNative.cs b/Source/OpenTK/Platform/Windows/WinGLNative.cs index 0650a819..6d12dde6 100644 --- a/Source/OpenTK/Platform/Windows/WinGLNative.cs +++ b/Source/OpenTK/Platform/Windows/WinGLNative.cs @@ -452,8 +452,6 @@ namespace OpenTK.Platform.Windows if (!e.Cancel) { - Unload(this, EventArgs.Empty); - DestroyWindow(); break; } @@ -1117,10 +1115,6 @@ namespace OpenTK.Platform.Windows #region Events - public event EventHandler<EventArgs> Load =delegate { }; - - public event EventHandler<EventArgs> Unload = delegate { }; - public event EventHandler<EventArgs> Move = delegate { }; public event EventHandler<EventArgs> Resize = delegate { }; diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index 92e928bd..4fc2a91b 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -1270,10 +1270,6 @@ namespace OpenTK.Platform.X11 #region Events - public event EventHandler<EventArgs> Load = delegate { }; - - public event EventHandler<EventArgs> Unload = delegate { }; - public event EventHandler<EventArgs> Move = delegate { }; public event EventHandler<EventArgs> Resize = delegate { };