Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore(desktop-gpui): drop narrating comments from editor placement

Richie McIlroyba8a4361197d
diff --git a/apps/desktop-gpui/src/app_windows/editor_placement.rs b/apps/desktop-gpui/src/app_windows/editor_placement.rs
index f36595e5f..0fee64655 100644
--- a/apps/desktop-gpui/src/app_windows/editor_placement.rs
+++ b/apps/desktop-gpui/src/app_windows/editor_placement.rs
@@ -1,7 +1,3 @@
-//! Editor window placement on macOS: open filling the work area on laptop
-//! sized displays (capped on large ones), and reopen wherever the editor last
-//! sat on that display.
-//!
//! All geometry is AppKit screen space (bottom-left origin, y up), read
//! straight from `NSScreen` and `NSWindow`. gpui's own display rects mix a
//! display-local x with a global y, which places windows wrongly on displays
@@ -108,8 +104,6 @@ fn remembered_frame(screen: &Screen, memory: &EditorWindowMemory) -> Option<Rect
frame.is_usable().then_some(frame)
}
-/// The last display the editor was on when it is still connected, otherwise
-/// the display under the cursor.
pub(super) fn opening_frame(
screens: &[Screen],
memory: Option<&EditorWindowMemory>,
diff --git a/apps/desktop-gpui/src/platform.rs b/apps/desktop-gpui/src/platform.rs
index f8debe2d1..0e0944503 100644
--- a/apps/desktop-gpui/src/platform.rs
+++ b/apps/desktop-gpui/src/platform.rs
@@ -1178,7 +1178,6 @@ mod mac {
pub visible: (f64, f64, f64, f64),
}
- /// Every connected `NSScreen` in AppKit coordinates, menu-bar screen first.
pub fn screen_geometries() -> Vec<ScreenGeometry> {
use objc2::{class, msg_send, runtime::AnyObject};
use objc2_foundation::{NSRect, NSString};