From d99867d4da04bc2c4beb066276cba60986813431 Mon Sep 17 00:00:00 2001 From: Ryan Smith Date: Thu, 12 Oct 2023 09:47:54 -0700 Subject: [PATCH] e2pg: refactor. remove unused function --- e2pg/e2pg.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/e2pg/e2pg.go b/e2pg/e2pg.go index 9c2b1cca..d5d2c273 100644 --- a/e2pg/e2pg.go +++ b/e2pg/e2pg.go @@ -10,7 +10,6 @@ import ( "sync/atomic" "time" - "github.com/indexsupply/x/bloom" "github.com/indexsupply/x/eth" "github.com/indexsupply/x/geth" "github.com/indexsupply/x/wpg" @@ -379,18 +378,6 @@ func (task *Task) Converge(notx bool) error { return errors.Join(ErrReorg, rollback()) } -func (task *Task) skip(bf bloom.Filter) bool { - if len(task.filter) == 0 { - return false - } - for _, sig := range task.filter { - if !bf.Missing(sig) { - return false - } - } - return true -} - // Fills in task.batch with block data (headers, bodies, receipts) from // geth and then calls Index on the task's integrations with the block // data.