Skip to content

Commit

Permalink
refactor: remove iterator helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kuuote committed Sep 20, 2024
1 parent 039aebf commit 1035184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 0 additions & 6 deletions denops/skkeleton/deps/iterator_helpers.ts

This file was deleted.

6 changes: 2 additions & 4 deletions denops/skkeleton/sources/user_dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1035184

Please sign in to comment.