Skip to content

Commit 957cde8

Browse files
committed
Remove window-element query from core
1 parent f9000da commit 957cde8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

core/nut.js/index.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import {
1212
ColorQuery,
1313
LineQuery,
1414
RGBA,
15-
WindowElementDescription,
16-
WindowElementQuery,
1715
WindowQuery,
1816
WordQuery
1917
} from "@nut-tree/shared";
@@ -99,16 +97,6 @@ const windowWithTitle = (title: string | RegExp): WindowQuery => {
9997
};
10098
};
10199

102-
const windowElementDescribedBy = (description: WindowElementDescription): WindowElementQuery => {
103-
return {
104-
type: "window-element",
105-
id: `window-element-described-by-${JSON.stringify(description)}`,
106-
by: {
107-
description
108-
}
109-
};
110-
};
111-
112100
const pixelWithColor = (color: RGBA): ColorQuery => {
113101
return {
114102
type: "color",
@@ -140,6 +128,5 @@ export {
140128
singleWord,
141129
textLine,
142130
windowWithTitle,
143-
windowElementDescribedBy,
144131
pixelWithColor
145132
};

0 commit comments

Comments
 (0)