aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgluk256 <gluk256@users.noreply.github.com>2018-03-03 07:54:15 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-03-03 07:54:15 +0800
commitfa375955ad52bc7936f33c8d8cec68fb9007baaa (patch)
tree2ad4fc4104eb354d8aa9cd1a517b80563dc6bba3
parent5ad7b9123ce4688a2e3370e7487ef979e97c4373 (diff)
downloaddexon-fa375955ad52bc7936f33c8d8cec68fb9007baaa.tar.gz
dexon-fa375955ad52bc7936f33c8d8cec68fb9007baaa.tar.zst
dexon-fa375955ad52bc7936f33c8d8cec68fb9007baaa.zip
whisper/whisperv6: delete unused function (#16234)
-rw-r--r--whisper/whisperv6/filter.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/whisper/whisperv6/filter.go b/whisper/whisperv6/filter.go
index e4171f85c..2f170ddeb 100644
--- a/whisper/whisperv6/filter.go
+++ b/whisper/whisperv6/filter.go
@@ -191,20 +191,6 @@ func (fs *Filters) NotifyWatchers(env *Envelope, p2pMessage bool) {
}
}
-func (f *Filter) processEnvelope(env *Envelope) *ReceivedMessage {
- if f.MatchEnvelope(env) {
- msg := env.Open(f)
- if msg != nil {
- return msg
- }
-
- log.Trace("processing envelope: failed to open", "hash", env.Hash().Hex())
- } else {
- log.Trace("processing envelope: does not match", "hash", env.Hash().Hex())
- }
- return nil
-}
-
func (f *Filter) expectsAsymmetricEncryption() bool {
return f.KeyAsym != nil
}