Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tunderdomb committed Jun 22, 2022
1 parent ce1b7d5 commit 90af6a7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/ProtoQueueMessage.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
const QueueMessage = require('./QueueMessage')

class ProtoQueueMessage extends QueueMessage {
static load (protoPath, definitionLookup) {
try {
const protobuf = require('protobufjs')
const proto = protobuf.load(protoPath)

if (!proto) {
return null
}
if (!definitionLookup) {
return proto
}
if (definitionLookup) {
return proto.lookup(definitionLookup)
}
} catch (err) {
return null
}
}

serialize () {
const errorMessage = this.ContentSchema.verify(this.data)

Expand Down

0 comments on commit 90af6a7

Please sign in to comment.