chore: remove unneeded file

This commit is contained in:
fryorcraken.eth 2022-10-31 09:06:40 +11:00
parent 2cef9d43ea
commit a13b2c3f70
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 0 additions and 67 deletions

View File

@ -1,67 +0,0 @@
/* eslint-disable import/export */
/* eslint-disable @typescript-eslint/no-namespace */
import { encodeMessage, decodeMessage, message } from "protons-runtime";
import type { Uint8ArrayList } from "uint8arraylist";
import type { Codec } from "protons-runtime";
export interface MessageTopicOnly {
contentTopic?: string;
}
export namespace MessageTopicOnly {
let _codec: Codec<MessageTopicOnly>;
export const codec = (): Codec<MessageTopicOnly> => {
if (_codec == null) {
_codec = message<MessageTopicOnly>(
(obj, writer, opts = {}) => {
if (opts.lengthDelimited !== false) {
writer.fork();
}
if (obj.contentTopic != null) {
writer.uint32(18);
writer.string(obj.contentTopic);
}
if (opts.lengthDelimited !== false) {
writer.ldelim();
}
},
(reader, length) => {
const obj: any = {};
const end = length == null ? reader.len : reader.pos + length;
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 2:
obj.contentTopic = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
}
}
return obj;
}
);
}
return _codec;
};
export const encode = (obj: MessageTopicOnly): Uint8Array => {
return encodeMessage(obj, MessageTopicOnly.codec());
};
export const decode = (
buf: Uint8Array | Uint8ArrayList
): MessageTopicOnly => {
return decodeMessage(buf, MessageTopicOnly.codec());
};
}