Skip to content

Commit

Permalink
💪 remove unnecessary codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Milly committed Aug 14, 2024
1 parent 079f68a commit 007d372
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions eval/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ class ExpressionImpl extends String implements ExpressionProps {
this.prototype[Symbol.toStringTag] = "Expression";
}

constructor(raw: string) {
super(raw);
}

[vimExpressionOf](): string {
return this.valueOf();
}
Expand Down
4 changes: 0 additions & 4 deletions eval/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ class RawStringImpl extends String implements RawStringProps {

#cached?: string;

constructor(raw: string) {
super(raw);
}

[vimExpressionOf](): string {
this.#cached ??= `"${
this.valueOf().replaceAll(/\\.|(")/g, (m, q: string) => q ? `\\${q}` : m)
Expand Down
2 changes: 1 addition & 1 deletion eval/use_eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import type { RawString } from "./string.ts";
* }
* ```
*/
export async function useEval<T extends unknown>(
export async function useEval<T>(
denops: Denops,
executor: (helper: UseEvalHelper) => Promise<T>,
): Promise<T> {
Expand Down

0 comments on commit 007d372

Please sign in to comment.