Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

chore(desktop): drop the unused display lookup

Luis Ortiz287f6268ead4
diff --git a/apps/desktop/src/main/capture/displays.ts b/apps/desktop/src/main/capture/displays.ts
index ae05e7e..1d3eb2c 100644
--- a/apps/desktop/src/main/capture/displays.ts
+++ b/apps/desktop/src/main/capture/displays.ts
@@ -19,11 +19,6 @@ export function listDisplays(): DisplayInfo[] {
}));
}
-export function displayAt(point: { x: number; y: number }): DisplayInfo | null {
- const match = screen.getDisplayNearestPoint(point);
- return listDisplays().find((d) => d.id === match.id) ?? null;
-}
-
export function cursorPoint(): { x: number; y: number } {
return screen.getCursorScreenPoint();
}
diff --git a/apps/desktop/src/main/capture/index.ts b/apps/desktop/src/main/capture/index.ts
index e3acc7d..25188e5 100644
--- a/apps/desktop/src/main/capture/index.ts
+++ b/apps/desktop/src/main/capture/index.ts
@@ -1,4 +1,4 @@
-export { cursorPoint, type DisplayInfo, displayAt, listDisplays } from './displays';
+export { cursorPoint, type DisplayInfo, listDisplays } from './displays';
export {
elementAt,
elementLookupAvailable,