diff --git a/Source/OpenTK/Configuration.cs b/Source/OpenTK/Configuration.cs index fcae8212..0f3e99af 100644 --- a/Source/OpenTK/Configuration.cs +++ b/Source/OpenTK/Configuration.cs @@ -44,7 +44,6 @@ namespace OpenTK { static bool runningOnWindows, runningOnUnix, runningOnX11, runningOnMacOS, runningOnLinux; static bool runningOnMono; - static bool runningOnAndroid; volatile static bool initialized; readonly static object InitLock = new object(); diff --git a/Source/OpenTK/Platform/Dummy/DummyGLContext.cs b/Source/OpenTK/Platform/Dummy/DummyGLContext.cs index bb6f1a2a..95059613 100644 --- a/Source/OpenTK/Platform/Dummy/DummyGLContext.cs +++ b/Source/OpenTK/Platform/Dummy/DummyGLContext.cs @@ -24,7 +24,6 @@ namespace OpenTK.Platform.Dummy { readonly GraphicsContext.GetAddressDelegate Loader; - bool vsync; int swap_interval; static int handle_count; Thread current_thread; diff --git a/Source/OpenTK/Platform/Factory.cs b/Source/OpenTK/Platform/Factory.cs index 571deb44..59e5d578 100644 --- a/Source/OpenTK/Platform/Factory.cs +++ b/Source/OpenTK/Platform/Factory.cs @@ -164,7 +164,6 @@ namespace OpenTK.Platform { #region Fields - bool disposed; static readonly string error_string = "Please, refer to http://www.opentk.com for more information."; #endregion diff --git a/Source/OpenTK/Platform/MacOS/AglContext.cs b/Source/OpenTK/Platform/MacOS/AglContext.cs index f8e0fe0c..c19c0c1c 100644 --- a/Source/OpenTK/Platform/MacOS/AglContext.cs +++ b/Source/OpenTK/Platform/MacOS/AglContext.cs @@ -49,7 +49,6 @@ namespace OpenTK.Platform.MacOS CarbonWindowInfo carbonWindow; IntPtr shareContextRef; - DisplayDevice device; bool mIsFullscreen = false; public AglContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext) diff --git a/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs b/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs index b3307e16..12baf2c9 100644 --- a/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs +++ b/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs @@ -64,8 +64,6 @@ namespace OpenTK.Platform.MacOS bool mExists = true; DisplayDevice mDisplayDevice; - WindowAttributes mWindowAttrib; - WindowClass mWindowClass; WindowPositionMethod mPositionMethod = WindowPositionMethod.CenterOnMainScreen; int mTitlebarHeight; private WindowBorder windowBorder = WindowBorder.Resizable; diff --git a/Source/OpenTK/Platform/Windows/WinRawInput.cs b/Source/OpenTK/Platform/Windows/WinRawInput.cs index 80c5b0c2..9f12099f 100644 --- a/Source/OpenTK/Platform/Windows/WinRawInput.cs +++ b/Source/OpenTK/Platform/Windows/WinRawInput.cs @@ -144,7 +144,7 @@ namespace OpenTK.Platform.Windows { gamepad_driver = new XInputJoystick(); } - catch (Exception e) + catch (Exception) { Debug.Print("[Win] XInput driver not supported, falling back to WinMM"); gamepad_driver = new MappedGamePadDriver(); diff --git a/Source/OpenTK/Platform/X11/X11Factory.cs b/Source/OpenTK/Platform/X11/X11Factory.cs index 985f21cb..40cc402a 100644 --- a/Source/OpenTK/Platform/X11/X11Factory.cs +++ b/Source/OpenTK/Platform/X11/X11Factory.cs @@ -34,8 +34,6 @@ namespace OpenTK.Platform.X11 { class X11Factory : PlatformFactoryBase { - bool disposed; - #region Constructors public X11Factory()