@@ -24,7 +24,6 @@ import (
2424 "github.com/ethereum/go-ethereum/core"
2525 "github.com/ethereum/go-ethereum/core/types"
2626 "github.com/ethereum/go-ethereum/event"
27- "github.com/ethereum/go-ethereum/state"
2827 "github.com/ethereum/go-ethereum/ui/qt"
2928 "github.com/ethereum/go-ethereum/xeth"
3029 "github.com/obscuren/qml"
@@ -39,7 +38,6 @@ type AppContainer interface {
3938
4039 NewBlock (* types.Block )
4140 NewWatcher (chan bool )
42- Messages (state.Messages , string )
4341 Post (string , int )
4442}
4543
@@ -79,10 +77,6 @@ func (app *ExtApplication) run() {
7977 return
8078 }
8179
82- // Subscribe to events
83- mux := app .lib .eth .EventMux ()
84- app .events = mux .Subscribe (core.NewBlockEvent {}, state .Messages (nil ))
85-
8680 // Call the main loop
8781 go app .mainLoop ()
8882
@@ -126,23 +120,3 @@ func (app *ExtApplication) mainLoop() {
126120func (self * ExtApplication ) Watch (filterOptions map [string ]interface {}, identifier string ) {
127121 self .filters [identifier ] = qt .NewFilterFromMap (filterOptions , self .eth )
128122}
129-
130- func (self * ExtApplication ) GetMessages (object map [string ]interface {}) string {
131- /* TODO remove me
132- filter := qt.NewFilterFromMap(object, self.eth)
133-
134- messages := filter.Find()
135- var msgs []javascript.JSMessage
136- for _, m := range messages {
137- msgs = append(msgs, javascript.NewJSMessage(m))
138- }
139-
140- b, err := json.Marshal(msgs)
141- if err != nil {
142- return "{\"error\":" + err.Error() + "}"
143- }
144-
145- return string(b)
146- */
147- return ""
148- }
0 commit comments