Skip to content

Commit 2d36427

Browse files
committed
remove macos display refresh rate
1 parent 9a0bac7 commit 2d36427

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -741,29 +741,7 @@ public class SentryFlutterPlugin: NSObject, FlutterPlugin {
741741
}
742742
#elseif os(macOS)
743743
private func displayRefreshRate(_ result: @escaping FlutterResult) {
744-
// We don't use CADisplayLink for macOS because it's only available starting with macOS 14
745-
guard let window = NSApplication.shared.keyWindow else {
746-
result(nil)
747-
return
748-
}
749-
750-
guard let screen = window.screen else {
751-
result(nil)
752-
return
753-
}
754-
755-
guard let displayID =
756-
screen.deviceDescription[NSDeviceDescriptionKey("NSScreenNumber")] as? CGDirectDisplayID else {
757-
result(nil)
758-
return
759-
}
760-
761-
guard let mode = CGDisplayCopyDisplayMode(displayID) else {
762-
result(nil)
763-
return
764-
}
765-
766-
result(Int(mode.refreshRate))
744+
result(nil)
767745
}
768746
#endif
769747

0 commit comments

Comments
 (0)