diff options
author | Sandy Armstrong <sandy@xamarin.com> | 2019-04-04 00:29:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-04 00:29:53 +0300 |
commit | 569496df4f99d6f4ec3efa24fcf06f04c1a07345 (patch) | |
tree | b99efdb6823f93fa732c223d15daf30d2729ff98 /main | |
parent | 8575a02c77a7854f0cd5a9c7df27490d14a5314f (diff) | |
parent | 810ebcaf9cdcda13661dc3b86bfb0501095e38a7 (diff) |
Merge pull request #418 from xamarin/pr-sandy-vsec-master-fixes
NSStackViewExtensions: Remove unused/duplicated code
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs | 2 | ||||
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs b/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs index 4a3633ed96..d7e9b437a1 100644 --- a/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs +++ b/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/MacToolbox.cs @@ -95,7 +95,7 @@ namespace MonoDevelop.DesignerSupport.Toolbox var compactImage = ImageService.GetIcon (Stock.CompactDisplay, Gtk.IconSize.Menu); var addImage = ImageService.GetIcon (Stock.Add, Gtk.IconSize.Menu); - horizontalStackView = NSStackViewExtensions.CreateHorizontalStackView (IconsSpacing); + horizontalStackView = NativeViewHelper.CreateHorizontalStackView (IconsSpacing); AddArrangedSubview (horizontalStackView); horizontalStackView.LeftAnchor.ConstraintEqualToAnchor (LeftAnchor, 0).Active = true; diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs index d8046e2bd9..7f0b47b24e 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs @@ -35,14 +35,6 @@ namespace MonoDevelop.Components.Mac const int RenderingPriority = (int)NSLayoutPriority.Required; const int LowPriority = (int)NSLayoutPriority.DefaultLow - 1; - public static NSStackView CreateHorizontalStackView (int spacing = 10) => new NSStackView () { - Orientation = NSUserInterfaceLayoutOrientation.Horizontal, - Alignment = NSLayoutAttribute.CenterY, - Spacing = spacing, - Distribution = NSStackViewDistribution.Fill, - TranslatesAutoresizingMaskIntoConstraints = false - }; - public static void AddArrangedSubview (this NSStackView stackView, NSView view, bool expandHorizontally, bool expandVertically) { stackView.AddArrangedSubview (view); |