Move to i_s / p_s and add user info (not quite complete)
[pstop.git] / performance_schema / file_summary_by_instance / cache.go
diff --git a/performance_schema/file_summary_by_instance/cache.go b/performance_schema/file_summary_by_instance/cache.go
deleted file mode 100644 (file)
index 6b2b147..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-package file_summary_by_instance
-
-import (
-       "errors"
-
-       //      "github.com/sjmudd/pstop/lib"
-)
-
-// provide a mapping from filename to table.schema etc
-
-var (
-       mapped_name    map[string]string
-       total, matched int
-)
-
-func init() {
-       // setup on startup
-       mapped_name = make(map[string]string)
-}
-
-func get_from_cache(key string) (result string, err error) {
-       total++
-       if result, ok := mapped_name[key]; ok {
-               matched++
-               //              lib.Logger.Println("matched/total:", matched, total)
-               return result, nil
-       } else {
-               //              lib.Logger.Println("matched/total:", matched, total)
-               return "", errors.New("Not found")
-       }
-}
-
-func save_to_cache(key, value string) string {
-       mapped_name[key] = value
-       return value
-}