Skip to content

Commit 3cb0f2b

Browse files
committed
remove unused
1 parent 237dc77 commit 3cb0f2b

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { type json, normalizeProps } from "~/utils/getBlockProps";
22
import {
33
TOP_LEVEL_BLOCK_PROP_KEYS,
4-
DISCOURSE_NODE_PAGE_PREFIX,
54
} from "../data/blockPropsSettingsConfig";
65
import { getPersonalSettingsKey } from "./init";
76
import {
@@ -254,23 +253,4 @@ export const setupPullWatchDiscourseNodes = (
254253
};
255254

256255

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-
276256
export { hasPropChanged, getNormalizedProps };

0 commit comments

Comments
 (0)