Cocoa: remove unnecessary Legacy Style-only code in Scroll

This commit is contained in:
rich2014 2024-07-05 21:12:29 +08:00
parent ca2bb30540
commit 7f97b8379d

View File

@ -555,13 +555,6 @@ begin
scrollBar:= TCocoaScrollBar(TCocoaScrollBar.alloc).initWithFrame(dst);
scrollBar.setManager( parent._manager );
parent.addSubview(scrollBar);
{$ifdef BOOLFIX}
scrollBar.setEnabled_(Ord(true));
scrollBar.setHidden_(Ord(not AVisible));
{$else}
scrollBar.setEnabled(true);
scrollBar.setHidden(not AVisible);
{$endif}
scrollBar.preventBlock := true;
//Suppress scrollers notifications.
scrollBar.callback := parent.callback;