Remove unused fields and variables.

This commit is contained in:
Fraser Waters 2014-02-22 21:02:46 +00:00
parent ab0751e7ec
commit b80bb86c5b
7 changed files with 1 additions and 9 deletions

View file

@ -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();

View file

@ -24,7 +24,6 @@ namespace OpenTK.Platform.Dummy
{
readonly GraphicsContext.GetAddressDelegate Loader;
bool vsync;
int swap_interval;
static int handle_count;
Thread current_thread;

View file

@ -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

View file

@ -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)

View file

@ -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;

View file

@ -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();

View file

@ -34,8 +34,6 @@ namespace OpenTK.Platform.X11
{
class X11Factory : PlatformFactoryBase
{
bool disposed;
#region Constructors
public X11Factory()