Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorSandy Armstrong <sandy@xamarin.com>2019-04-04 00:29:53 +0300
committerGitHub <noreply@github.com>2019-04-04 00:29:53 +0300
commit569496df4f99d6f4ec3efa24fcf06f04c1a07345 (patch)
treeb99efdb6823f93fa732c223d15daf30d2729ff98 /main
parent8575a02c77a7854f0cd5a9c7df27490d14a5314f (diff)
parent810ebcaf9cdcda13661dc3b86bfb0501095e38a7 (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.cs2
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components/Mac/NSStackViewExtensions.cs8
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);