From 2b8e20f1227648b977fd2a95feba5d6b55e4f5c1 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 8 Dec 2019 18:33:25 -0800 Subject: [PATCH] remove unused functions --- weed/storage/backend/backend.go | 1 - weed/storage/backend/s3_backend/s3_backend.go | 7 ------- 2 files changed, 8 deletions(-) diff --git a/weed/storage/backend/backend.go b/weed/storage/backend/backend.go index 4b54d89dd..05a7fe84f 100644 --- a/weed/storage/backend/backend.go +++ b/weed/storage/backend/backend.go @@ -19,7 +19,6 @@ type BackendStorageFile interface { io.Closer GetStat() (datSize int64, modTime time.Time, err error) String() string - Instantiate(src *os.File) error } type BackendStorage interface { diff --git a/weed/storage/backend/s3_backend/s3_backend.go b/weed/storage/backend/s3_backend/s3_backend.go index 0f384aa9c..458a9ca72 100644 --- a/weed/storage/backend/s3_backend/s3_backend.go +++ b/weed/storage/backend/s3_backend/s3_backend.go @@ -157,10 +157,3 @@ func (s3backendStorageFile S3BackendStorageFile) String() string { return s3backendStorageFile.key } -func (s3backendStorageFile *S3BackendStorageFile) GetName() string { - return "s3" -} - -func (s3backendStorageFile S3BackendStorageFile) Instantiate(src *os.File) error { - panic("implement me") -}