aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/fusefrontend_reverse/rpath.go12
-rw-r--r--internal/readpassword/extpass_test.go2
2 files changed, 0 insertions, 14 deletions
diff --git a/internal/fusefrontend_reverse/rpath.go b/internal/fusefrontend_reverse/rpath.go
index f29bbf5..199473b 100644
--- a/internal/fusefrontend_reverse/rpath.go
+++ b/internal/fusefrontend_reverse/rpath.go
@@ -12,18 +12,6 @@ import (
"github.com/rfjakob/gocryptfs/internal/tlog"
)
-// abs basically returns storage dir + "/" + relPath.
-// It takes an error parameter so it can directly wrap decryptPath like this:
-// a, err := rfs.abs(rfs.decryptPath(relPath))
-// abs never generates an error on its own. In other words, abs(p, nil) never
-// fails.
-func (rfs *RootNode) abs(relPath string, err error) (string, error) {
- if err != nil {
- return "", err
- }
- return filepath.Join(rfs.args.Cipherdir, relPath), nil
-}
-
// rDecryptName decrypts the ciphertext name "cName", given the dirIV of the
// directory "cName" lies in. The relative plaintext path to the directory
// "pDir" is used if a "gocryptfs.longname.XYZ.name" must be resolved.
diff --git a/internal/readpassword/extpass_test.go b/internal/readpassword/extpass_test.go
index 9a643a5..ea05893 100644
--- a/internal/readpassword/extpass_test.go
+++ b/internal/readpassword/extpass_test.go
@@ -8,8 +8,6 @@ import (
"github.com/rfjakob/gocryptfs/internal/tlog"
)
-var testPw = []byte("test")
-
func TestMain(m *testing.M) {
// Shut up info output
tlog.Info.Enabled = false