aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/bindings.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-10 06:03:20 +0800
committerFelix Lange <fjl@twurst.com>2015-03-10 06:08:47 +0800
commit697f6748b8df6b50157f81eb7959d856d3eb688e (patch)
tree1ddcff1433ce9f6fdb0024abeba70da162949821 /cmd/mist/bindings.go
parentc2e5dacf555d93cb96b8fbffa700a2a6fece8bf0 (diff)
downloadgo-tangerine-697f6748b8df6b50157f81eb7959d856d3eb688e.tar
go-tangerine-697f6748b8df6b50157f81eb7959d856d3eb688e.tar.gz
go-tangerine-697f6748b8df6b50157f81eb7959d856d3eb688e.tar.bz2
go-tangerine-697f6748b8df6b50157f81eb7959d856d3eb688e.tar.lz
go-tangerine-697f6748b8df6b50157f81eb7959d856d3eb688e.tar.xz
go-tangerine-697f6748b8df6b50157f81eb7959d856d3eb688e.tar.zst
go-tangerine-697f6748b8df6b50157f81eb7959d856d3eb688e.zip
cmd/mist: use cli library and package accounts
Diffstat (limited to 'cmd/mist/bindings.go')
-rw-r--r--cmd/mist/bindings.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/cmd/mist/bindings.go b/cmd/mist/bindings.go
index fd89eb7e2..b473cc985 100644
--- a/cmd/mist/bindings.go
+++ b/cmd/mist/bindings.go
@@ -28,7 +28,6 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethutil"
- "github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/state"
)
@@ -37,18 +36,6 @@ type plugin struct {
Path string `json:"path"`
}
-// LogPrint writes to the GUI log.
-func (gui *Gui) LogPrint(level logger.LogLevel, msg string) {
- /*
- str := strings.TrimRight(s, "\n")
- lines := strings.Split(str, "\n")
-
- view := gui.getObjectByName("infoView")
- for _, line := range lines {
- view.Call("addLog", line)
- }
- */
-}
func (gui *Gui) Transact(from, recipient, value, gas, gasPrice, d string) (string, error) {
var data string
if len(recipient) == 0 {
@@ -64,17 +51,6 @@ func (gui *Gui) Transact(from, recipient, value, gas, gasPrice, d string) (strin
return gui.xeth.Transact(from, recipient, value, gas, gasPrice, data)
}
-// functions that allow Gui to implement interface guilogger.LogSystem
-func (gui *Gui) SetLogLevel(level logger.LogLevel) {
- gui.logLevel = level
- gui.eth.Logger().SetLogLevel(level)
- gui.config.Save("loglevel", level)
-}
-
-func (gui *Gui) GetLogLevel() logger.LogLevel {
- return gui.logLevel
-}
-
func (self *Gui) AddPlugin(pluginPath string) {
self.plugins[pluginPath] = plugin{Name: pluginPath, Path: pluginPath}
@@ -89,11 +65,6 @@ func (self *Gui) RemovePlugin(pluginPath string) {
ethutil.WriteFile(self.eth.DataDir+"/plugins.json", json)
}
-// this extra function needed to give int typecast value to gui widget
-// that sets initial loglevel to default
-func (gui *Gui) GetLogLevelInt() int {
- return int(gui.logLevel)
-}
func (self *Gui) DumpState(hash, path string) {
var stateDump []byte