Remove unused gob register

This commit is contained in:
Tulir Asokan 2022-02-10 19:50:49 +02:00
parent dd58e8d1e7
commit 1fbbe7fa06

View file

@ -19,7 +19,6 @@ package main
import ( import (
"bytes" "bytes"
"context" "context"
"encoding/gob"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
@ -694,10 +693,6 @@ func (portal *Portal) isRecentlyHandled(id types.MessageID, error database.Messa
return false return false
} }
func init() {
gob.Register(&waProto.Message{})
}
func (portal *Portal) markHandled(msg *database.Message, info *types.MessageInfo, mxid id.EventID, isSent, recent bool, error database.MessageErrorType) *database.Message { func (portal *Portal) markHandled(msg *database.Message, info *types.MessageInfo, mxid id.EventID, isSent, recent bool, error database.MessageErrorType) *database.Message {
if msg == nil { if msg == nil {
msg = portal.bridge.DB.Message.New() msg = portal.bridge.DB.Message.New()