Skip to content

Commit

Permalink
Remove window-element query from core
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Apr 3, 2024
1 parent f9000da commit 957cde8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions core/nut.js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import {
ColorQuery,
LineQuery,
RGBA,
WindowElementDescription,
WindowElementQuery,
WindowQuery,
WordQuery
} from "@nut-tree/shared";
Expand Down Expand Up @@ -99,16 +97,6 @@ const windowWithTitle = (title: string | RegExp): WindowQuery => {
};
};

const windowElementDescribedBy = (description: WindowElementDescription): WindowElementQuery => {
return {
type: "window-element",
id: `window-element-described-by-${JSON.stringify(description)}`,
by: {
description
}
};
};

const pixelWithColor = (color: RGBA): ColorQuery => {
return {
type: "color",
Expand Down Expand Up @@ -140,6 +128,5 @@ export {
singleWord,
textLine,
windowWithTitle,
windowElementDescribedBy,
pixelWithColor
};

0 comments on commit 957cde8

Please sign in to comment.