summaryrefslogtreecommitdiff
path: root/android_shared_android.go
diff options
context:
space:
mode:
Diffstat (limited to 'android_shared_android.go')
-rw-r--r--android_shared_android.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/android_shared_android.go b/android_shared_android.go
deleted file mode 100644
index b29f830..0000000
--- a/android_shared_android.go
+++ /dev/null
@@ -1,26 +0,0 @@
-//go:build android
-
-package main
-
-import (
- "os"
- "path/filepath"
-)
-
-// sharedTextCachePath returns the cache file used for Android share intents.
-func sharedTextCachePath() string {
- dir, derr := os.UserCacheDir()
- if derr != nil || dir == "" {
- dir = os.TempDir()
- }
- return filepath.Join(dir, "quicklogger-shared.txt")
-}
-
-// readSharedFromCache tries to read the shared text written by the Android activity.
-func readSharedFromCache() (string, error) {
- b, err := os.ReadFile(sharedTextCachePath())
- if err != nil {
- return "", err
- }
- return string(b), nil
-}