Removed extra methods from ListenerExt

gql_cataclysm
noah metz 2023-09-12 19:01:35 -06:00
parent 07ce005365
commit dac0f1f273
1 changed files with 0 additions and 12 deletions

@ -2,7 +2,6 @@ package graphvent
import (
"reflect"
"encoding/json"
)
// A Listener extension provides a channel that can receive signals on a different thread
@ -24,13 +23,6 @@ func NewListenerExt(buffer int) *ListenerExt {
}
}
// Simple load function, unmarshal the buffer int from json
func (ext *ListenerExt) DeserializeListenerExt(ctx *Context, data []byte) error {
err := json.Unmarshal(data, &ext.Buffer)
ext.Chan = make(chan Signal, ext.Buffer)
return err
}
func (listener *ListenerExt) Type() ExtType {
return ListenerExtType
}
@ -45,7 +37,3 @@ func (ext *ListenerExt) Process(ctx *Context, node *Node, source NodeID, signal
}
return nil
}
func (ext *ListenerExt) MarshalBinary() ([]byte, error) {
return json.Marshal(ext.Buffer)
}