Skip to content

Commit

Permalink
Remove getHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Sep 13, 2023
1 parent 6683cee commit 18305bf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/seroval/src/core/Serializer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { crossSerializeStream } from './cross';
import { CROSS_REFERENCE_HEADER } from './keys';
import { serializeString } from './string';

export interface SerializerOptions {
Expand All @@ -20,10 +19,6 @@ export default class Serializer {
) {
}

getHeader(): string {
return this.options.globalIdentifier + '={};' + CROSS_REFERENCE_HEADER;
}

write(key: string, value: unknown): void {
if (this.alive) {
this.cleanups.push(crossSerializeStream(value, {
Expand Down

0 comments on commit 18305bf

Please sign in to comment.