Skip to content

Commit

Permalink
[Mac] Remove deprecated MonoMac code Pt.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sevoku committed Mar 13, 2017
1 parent 4e3a334 commit e1d161e
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 33 deletions.
2 changes: 0 additions & 2 deletions Xwt.XamMac/Xwt.Mac/ButtonBackend.cs
Expand Up @@ -248,7 +248,6 @@ public override void ResetCursorRects ()
}
}

#if !MONOMAC
public override bool AllowsVibrancy {
get {
// we don't support vibrancy
Expand Down Expand Up @@ -276,7 +275,6 @@ public override void SetButtonType (NSButtonType aType)
return base.EffectiveAppearance;
}
}
#endif

class ColoredButtonCell : NSButtonCell
{
Expand Down
14 changes: 2 additions & 12 deletions Xwt.XamMac/Xwt.Mac/CanvasBackend.cs
Expand Up @@ -26,19 +26,9 @@
// THE SOFTWARE.

using System;
using Xwt.Backends;

#if MONOMAC
using nint = System.Int32;
using nfloat = System.Single;
using MonoMac.CoreGraphics;
using MonoMac.AppKit;
using CGRect = System.Drawing.RectangleF;
using CGSize = System.Drawing.SizeF;
#else
using CoreGraphics;
using AppKit;
#endif
using CoreGraphics;
using Xwt.Backends;

namespace Xwt.Mac
{
Expand Down
2 changes: 0 additions & 2 deletions Xwt.XamMac/Xwt.Mac/ComboBoxBackend.cs
Expand Up @@ -203,7 +203,6 @@ public override void ResetCursorRects ()
AddCursorRect (Bounds, Backend.Cursor);
}

#if !MONOMAC
public override bool AllowsVibrancy {
get {
// we don't support vibrancy
Expand All @@ -212,7 +211,6 @@ public override void ResetCursorRects ()
return base.AllowsVibrancy;
}
}
#endif
}
}

6 changes: 0 additions & 6 deletions Xwt.XamMac/Xwt.Mac/GtkQuartz.cs
Expand Up @@ -25,14 +25,8 @@
// THE SOFTWARE.
using System;
using System.Runtime.InteropServices;

#if MONOMAC
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
#else
using AppKit;
using ObjCRuntime;
#endif

namespace Xwt.Mac
{
Expand Down
2 changes: 0 additions & 2 deletions Xwt.XamMac/Xwt.Mac/LabelBackend.cs
Expand Up @@ -250,7 +250,6 @@ public override bool AcceptsFirstResponder ()
return false;
}

#if !MONOMAC
public override bool AllowsVibrancy {
get {
// we don't support vibrancy
Expand All @@ -259,7 +258,6 @@ public override bool AcceptsFirstResponder ()
return base.AllowsVibrancy;
}
}
#endif
}

class CustomTextFieldCell: NSTextFieldCell
Expand Down
2 changes: 0 additions & 2 deletions Xwt.XamMac/Xwt.Mac/SeparatorBackend.cs
Expand Up @@ -55,7 +55,6 @@ public SeparatorWidget ()
get { return this; }
}

#if !MONOMAC
public override bool AllowsVibrancy {
get {
// we don't support vibrancy
Expand All @@ -64,7 +63,6 @@ public SeparatorWidget ()
return base.AllowsVibrancy;
}
}
#endif
}
}

2 changes: 0 additions & 2 deletions Xwt.XamMac/Xwt.Mac/SliderBackend.cs
Expand Up @@ -203,7 +203,6 @@ public override void ResetCursorRects ()
}
}

#if !MONOMAC
public override bool AllowsVibrancy {
get {
// we don't support vibrancy
Expand All @@ -212,7 +211,6 @@ public override void ResetCursorRects ()
return base.AllowsVibrancy;
}
}
#endif
}

public class MacSliderCell : NSSliderCell
Expand Down
2 changes: 0 additions & 2 deletions Xwt.XamMac/Xwt.Mac/SpinButtonBackend.cs
Expand Up @@ -335,7 +335,6 @@ public void DisableEvent (object eventId)

class VibrancyStepper : NSStepper
{
#if !MONOMAC
public override bool AllowsVibrancy {
get {
// we don't support vibrancy
Expand All @@ -344,7 +343,6 @@ class VibrancyStepper : NSStepper
return base.AllowsVibrancy;
}
}
#endif
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions Xwt.XamMac/Xwt.Mac/WindowBackend.cs
Expand Up @@ -432,9 +432,6 @@ public void SetMainMenu (IMenuBackend menu)
#endregion

static Selector closeSel = new Selector ("close");
#if MONOMAC
static Selector retainSel = new Selector("retain");
#endif

bool disposing, disposed;

Expand Down

0 comments on commit e1d161e

Please sign in to comment.