Skip to content

Commit

Permalink
[appkit] Remove leftover code made obsolete by newrefcount.
Browse files Browse the repository at this point in the history
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 xamarin#15089).
  • Loading branch information
rolfbjarne committed May 24, 2022
1 parent 9b96274 commit c8ca0a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/appkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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:")]
Expand Down

0 comments on commit c8ca0a9

Please sign in to comment.