From 5264eb6db0fd655b0ec1900402f4fc049147237d Mon Sep 17 00:00:00 2001 From: Will Norris Date: Sat, 9 Sep 2017 08:33:06 +0000 Subject: [PATCH] remove long-deprecated cacheDir and cacheSize flags --- cmd/imageproxy/main.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/imageproxy/main.go b/cmd/imageproxy/main.go index ba9f200..a18e5c8 100644 --- a/cmd/imageproxy/main.go +++ b/cmd/imageproxy/main.go @@ -41,8 +41,6 @@ var whitelist = flag.String("whitelist", "", "comma separated list of allowed re var referrers = flag.String("referrers", "", "comma separated list of allowed referring hosts") var baseURL = flag.String("baseURL", "", "default base URL for relative remote URLs") var cache = flag.String("cache", "", "location to cache images (see https://github.com/willnorris/imageproxy#cache)") -var cacheDir = flag.String("cacheDir", "", "(Deprecated; use 'cache' instead) directory to use for file cache") -var cacheSize = flag.Uint64("cacheSize", 0, "Deprecated: this flag does nothing") var signatureKey = flag.String("signatureKey", "", "HMAC key used in calculating request signatures") var scaleUp = flag.Bool("scaleUp", false, "allow images to scale beyond their original dimensions") var timeout = flag.Duration("timeout", 0, "time limit for requests served by this proxy") @@ -98,9 +96,6 @@ func main() { // parseCache parses the cache-related flags and returns the specified Cache implementation. func parseCache() (imageproxy.Cache, error) { if *cache == "" { - if *cacheDir != "" { - return diskCache(*cacheDir), nil - } return nil, nil }