diff --git a/denops/skkeleton/deps/iterator_helpers.ts b/denops/skkeleton/deps/iterator_helpers.ts deleted file mode 100644 index e69e341..0000000 --- a/denops/skkeleton/deps/iterator_helpers.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { - asyncIteratorFrom as fromA, - iteratorFrom as from, - wrapAsyncIterator as wrapA, - wrapIterator as wrap, -} from "https://deno.land/x/iterator_helpers@v0.1.2/mod.ts"; diff --git a/denops/skkeleton/sources/user_dictionary.ts b/denops/skkeleton/sources/user_dictionary.ts index 5943af2..ffb56cd 100644 --- a/denops/skkeleton/sources/user_dictionary.ts +++ b/denops/skkeleton/sources/user_dictionary.ts @@ -10,7 +10,6 @@ import { UserDictionary, UserDictionaryPath, } from "../dictionary.ts"; -import { wrap } from "../deps/iterator_helpers.ts"; import { is } from "jsr:@core/unknownutil@~4.3.0/is"; import { assert } from "jsr:@core/unknownutil@~4.3.0/assert"; @@ -108,9 +107,8 @@ export class Dictionary implements UserDictionary { for (const [, cs] of this.#cachedCandidates) { cs.forEach(adder); } - return wrap(this.#rank.entries()) - .filter((e) => set.has(e[0])) - .toArray(); + return [...this.#rank.entries()] + .filter((e) => set.has(e[0])); } registerHenkanResult(type: HenkanType, word: string, candidate: string) {