From c8ca0a957a8b73b3144c550f02ff38aa92c4238e Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 24 May 2022 09:38:47 +0200 Subject: [PATCH] [appkit] Remove leftover code made obsolete by newrefcount. Remove code that we needed at some point due to memory related issues. These issues were fixed several years ago (newrefcount), so we no longer need this code (in fact it causes problems, see #15089). --- src/appkit.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/appkit.cs b/src/appkit.cs index 3d8395449e7..a66f0700b8b 100644 --- a/src/appkit.cs +++ b/src/appkit.cs @@ -15929,16 +15929,12 @@ partial interface NSView : NSDraggingDestination, NSAnimatablePropertyContainer, void WillRemoveSubview ([NullAllowed] NSView subview); [Export ("removeFromSuperview")] - [PreSnippet ("var mySuper = Superview;", Optimizable = true)] - [PostSnippet ("if (mySuper != null) {\n\t#pragma warning disable 168\n\tvar flush = mySuper.Subviews;\n#pragma warning restore 168\n\t}", Optimizable = true)] void RemoveFromSuperview (); [Export ("replaceSubview:with:")][PostGet ("Subviews")] void ReplaceSubviewWith (NSView oldView, NSView newView); [Export ("removeFromSuperviewWithoutNeedingDisplay")] - [PreSnippet ("var mySuper = Superview;", Optimizable = true)] - [PostSnippet ("if (mySuper != null) {\n\t#pragma warning disable 168\n\tvar flush = mySuper.Subviews;\n#pragma warning restore 168\n\t}", Optimizable = true)] void RemoveFromSuperviewWithoutNeedingDisplay (); [Export ("resizeSubviewsWithOldSize:")]