Skip to content

Commit f11b47f

Browse files
committed
remove redundatnt function
1 parent 0962e48 commit f11b47f

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

apps/roam/src/components/settings/utils/pullWatchers.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -254,23 +254,4 @@ export const setupPullWatchDiscourseNodes = (
254254
};
255255

256256

257-
export const queryAllDiscourseNodePageUids = (): Record<string, string> => {
258-
const results = window.roamAlphaAPI.q(`
259-
[:find ?uid ?title
260-
:where
261-
[?page :node/title ?title]
262-
[?page :block/uid ?uid]
263-
[(clojure.string/starts-with? ?title "${DISCOURSE_NODE_PAGE_PREFIX}")]]
264-
`) as [string, string][];
265-
266-
const nodePageUids: Record<string, string> = {};
267-
268-
for (const [pageUid, title] of results) {
269-
const nodeLabel = title.replace(DISCOURSE_NODE_PAGE_PREFIX, "");
270-
nodePageUids[nodeLabel] = pageUid;
271-
}
272-
273-
return nodePageUids;
274-
};
275-
276257
export { hasPropChanged, getNormalizedProps };

0 commit comments

Comments
 (0)