aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key_store_plain.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2015-02-23 18:28:20 +0800
committerMaran <maran.hidskes@gmail.com>2015-02-23 18:28:20 +0800
commit40adb7feb657cd1cb2e4c7a02c8a9db95b18e67c (patch)
tree98c3bae13e0483cfd6a8919b9b5a848f72d79071 /crypto/key_store_plain.go
parentdd086791acf477da7641c168f82de70ed0b2dca6 (diff)
downloaddexon-40adb7feb657cd1cb2e4c7a02c8a9db95b18e67c.tar
dexon-40adb7feb657cd1cb2e4c7a02c8a9db95b18e67c.tar.gz
dexon-40adb7feb657cd1cb2e4c7a02c8a9db95b18e67c.tar.bz2
dexon-40adb7feb657cd1cb2e4c7a02c8a9db95b18e67c.tar.lz
dexon-40adb7feb657cd1cb2e4c7a02c8a9db95b18e67c.tar.xz
dexon-40adb7feb657cd1cb2e4c7a02c8a9db95b18e67c.tar.zst
dexon-40adb7feb657cd1cb2e4c7a02c8a9db95b18e67c.zip
Implement OS sensitive dataDirs
Diffstat (limited to 'crypto/key_store_plain.go')
-rw-r--r--crypto/key_store_plain.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/crypto/key_store_plain.go b/crypto/key_store_plain.go
index 6b76962a0..255ae0ed7 100644
--- a/crypto/key_store_plain.go
+++ b/crypto/key_store_plain.go
@@ -30,7 +30,6 @@ import (
"io"
"io/ioutil"
"os"
- "os/user"
"path"
)
@@ -48,12 +47,6 @@ type keyStorePlain struct {
keysDirPath string
}
-// TODO: copied from cmd/ethereum/flags.go
-func DefaultDataDir() string {
- usr, _ := user.Current()
- return path.Join(usr.HomeDir, ".ethereum")
-}
-
func NewKeyStorePlain(path string) KeyStore2 {
return &keyStorePlain{path}
}