From 957cde8287f0d5aa63f91d7e1169a1531c71831b Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Wed, 3 Apr 2024 20:07:30 +0200 Subject: [PATCH] Remove window-element query from core --- core/nut.js/index.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/core/nut.js/index.ts b/core/nut.js/index.ts index 6c995f35..8fce130c 100644 --- a/core/nut.js/index.ts +++ b/core/nut.js/index.ts @@ -12,8 +12,6 @@ import { ColorQuery, LineQuery, RGBA, - WindowElementDescription, - WindowElementQuery, WindowQuery, WordQuery } from "@nut-tree/shared"; @@ -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", @@ -140,6 +128,5 @@ export { singleWord, textLine, windowWithTitle, - windowElementDescribedBy, pixelWithColor };