aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 03:38:28 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 03:38:28 +0800
commit827ea4347836033b9d699f3f9b52159adcb16386 (patch)
tree0562351183a986df2365d0ebe675d4c913a5f0ac /ui/qt
parent253eb778d19af9204c9dd65e3963bd63f3bab6f0 (diff)
downloaddexon-827ea4347836033b9d699f3f9b52159adcb16386.tar
dexon-827ea4347836033b9d699f3f9b52159adcb16386.tar.gz
dexon-827ea4347836033b9d699f3f9b52159adcb16386.tar.bz2
dexon-827ea4347836033b9d699f3f9b52159adcb16386.tar.lz
dexon-827ea4347836033b9d699f3f9b52159adcb16386.tar.xz
dexon-827ea4347836033b9d699f3f9b52159adcb16386.tar.zst
dexon-827ea4347836033b9d699f3f9b52159adcb16386.zip
removed all old filters
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/filter.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/ui/qt/filter.go b/ui/qt/filter.go
index 48e8a7fae..090260e4e 100644
--- a/ui/qt/filter.go
+++ b/ui/qt/filter.go
@@ -1,30 +1 @@
package qt
-
-import (
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/ui"
- "github.com/obscuren/qml"
-)
-
-func NewFilterFromMap(object map[string]interface{}, eth core.Backend) *core.Filter {
- filter := ui.NewFilterFromMap(object, eth)
-
- if object["topics"] != nil {
- filter.SetTopics(makeTopics(object["topics"]))
- }
-
- return filter
-}
-
-func makeTopics(v interface{}) (d [][]byte) {
- if qList, ok := v.(*qml.List); ok {
- var s []string
- qList.Convert(&s)
-
- d = ui.MakeTopics(s)
- } else if str, ok := v.(string); ok {
- d = ui.MakeTopics(str)
- }
-
- return
-}