Cocoa: cleanup in CocoaUtils

This commit is contained in:
rich2014 2023-10-28 19:31:49 +08:00
parent 408f836d14
commit a58d6acc3d

View File

@ -51,7 +51,6 @@ function NSPrimaryScreen: NSScreen;
function NSPrimaryScreenFrame: NSRect;
function NSGlobalScreenFrame: NSRect;
function NSGlobalScreenLCLFrame: NSRect;
function NSGlobalScreenHeight: CGFloat;
function NSGlobalScreenBottom: CGFloat;
function IndexToHMonitor(i: NSUInteger): HMonitor;
@ -828,12 +827,6 @@ begin
Result.origin.y:= NSPrimaryScreenFrame.size.height - NSMaxY(Result);
end;
// the height of global full virtual display
function NSGlobalScreenHeight: CGFloat;
begin
Result:= NSGlobalScreenFrame.size.height;
end;
// the bottom of global full virtual display
// for cocoa window/screen to lcl coordinate
function NSGlobalScreenBottom: CGFloat;