Skip to content

Commit

Permalink
Remove unused ssz only codec
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jun 3, 2024
1 parent c1c8ed7 commit f777b31
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/api/src/utils/codecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
ResponseMetadataCodec,
Endpoint,
SszRequestMethods,
JsonRequestMethods,
} from "./types.js";
import {WireFormat} from "./wireFormat.js";

Expand Down Expand Up @@ -50,21 +49,6 @@ export function JsonOnlyReq<E extends Endpoint>(
};
}

export function SszOnlyReq<E extends Endpoint>(
req: Omit<RequestWithBodyCodec<E>, keyof JsonRequestMethods<E>>
): RequestWithBodyCodec<E> {
return {
...req,
writeReqJson: () => {
throw Error("Not implemented");
},
parseReqJson: () => {
throw Error("Not implemented");
},
onlySupport: WireFormat.ssz,
};
}

export const EmptyResponseDataCodec: ResponseDataCodec<EmptyResponseData, EmptyMeta> = {
toJson: () => {},
fromJson: () => {},
Expand Down

0 comments on commit f777b31

Please sign in to comment.