From 1924ec3baf9c7cb78662282fbec44fbb7f3d6d86 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 30 Nov 2015 14:14:52 -0500 Subject: [PATCH] Remove expired() since it's no longer used (because of the inlining) --- cache.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cache.go b/cache.go index 1a6c4e2..cea90c5 100644 --- a/cache.go +++ b/cache.go @@ -17,16 +17,8 @@ type Item struct { Expiration int64 } -func (item Item) expired(now int64) bool { - if item.Expiration == 0 { - return false - } - return now > item.Expiration -} - // Returns true if the item has expired. func (item Item) Expired() bool { - // "Inlining" of expired if item.Expiration == 0 { return false }