From 41b684491d0f81ead45798a7facecf496196cfc2 Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Mon, 3 Nov 2014 01:36:36 +0100 Subject: [PATCH] Remove unused fields/variables. Fixes warnings [#61] by removing some unused variables and an unused field. Field was private so no inheritance concerns. --- Source/OpenTK/Platform/Windows/WinRawJoystick.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Source/OpenTK/Platform/Windows/WinRawJoystick.cs b/Source/OpenTK/Platform/Windows/WinRawJoystick.cs index 9d8bb48..9357dd9 100644 --- a/Source/OpenTK/Platform/Windows/WinRawJoystick.cs +++ b/Source/OpenTK/Platform/Windows/WinRawJoystick.cs @@ -178,7 +178,6 @@ namespace OpenTK.Platform.Windows // Defines which types of HID devices we are interested in readonly RawInputDevice[] DeviceTypes; - readonly IntPtr Window; readonly object UpdateLock = new object(); readonly DeviceCollection Devices = new DeviceCollection(); @@ -194,7 +193,6 @@ namespace OpenTK.Platform.Windows if (window == IntPtr.Zero) throw new ArgumentNullException("window"); - Window = window; DeviceTypes = new RawInputDevice[] { new RawInputDevice(HIDUsageGD.Joystick, RawInputDeviceFlags.DEVNOTIFY | RawInputDeviceFlags.INPUTSINK, window), @@ -615,9 +613,6 @@ namespace OpenTK.Platform.Windows static bool GetDeviceCaps(Device stick, byte[] preparsed_data, out HidProtocolCaps caps) { - int axis_caps_count = 0; - int button_caps_count = 0; - // Query joystick capabilities caps = new HidProtocolCaps(); if (HidProtocol.GetCaps(preparsed_data, ref caps) != HidProtocolStatus.Success) @@ -641,7 +636,6 @@ namespace OpenTK.Platform.Windows Marshal.GetLastWin32Error()); return false; } - axis_caps_count = (int)axis_count; // Button capabilities ushort button_count = (ushort)button_caps.Length; @@ -653,7 +647,6 @@ namespace OpenTK.Platform.Windows Marshal.GetLastWin32Error()); return false; } - button_caps_count = (int)button_count; stick.AxisCaps.Clear(); stick.AxisCaps.AddRange(axis_caps); -- 2.7.4