Skip to content

Commit 007d372

Browse files
committed
💪 remove unnecessary codes
1 parent 079f68a commit 007d372

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

eval/expression.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ class ExpressionImpl extends String implements ExpressionProps {
101101
this.prototype[Symbol.toStringTag] = "Expression";
102102
}
103103

104-
constructor(raw: string) {
105-
super(raw);
106-
}
107-
108104
[vimExpressionOf](): string {
109105
return this.valueOf();
110106
}

eval/string.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ class RawStringImpl extends String implements RawStringProps {
136136

137137
#cached?: string;
138138

139-
constructor(raw: string) {
140-
super(raw);
141-
}
142-
143139
[vimExpressionOf](): string {
144140
this.#cached ??= `"${
145141
this.valueOf().replaceAll(/\\.|(")/g, (m, q: string) => q ? `\\${q}` : m)

eval/use_eval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import type { RawString } from "./string.ts";
2828
* }
2929
* ```
3030
*/
31-
export async function useEval<T extends unknown>(
31+
export async function useEval<T>(
3232
denops: Denops,
3333
executor: (helper: UseEvalHelper) => Promise<T>,
3434
): Promise<T> {

0 commit comments

Comments
 (0)