Skip to content

Commit 3c0ee99

Browse files
committed
remove unused utility
1 parent 2d54ad1 commit 3c0ee99

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Encoder.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,6 @@ export class Encoder {
224224
}
225225
}
226226

227-
countObjectKeys(object: Record<string, unknown>): number {
228-
let count = 0;
229-
for (const key in object) {
230-
if (Object.prototype.hasOwnProperty.call(object, key)) {
231-
count++;
232-
}
233-
}
234-
return count;
235-
}
236-
237227
encodeMap(object: Record<string, unknown>, depth: number) {
238228
const keys = Object.keys(object);
239229
if (this.sortKeys) {

0 commit comments

Comments
 (0)