Skip to content

Commit 1924ec3

Browse files
committed
Remove expired() since it's no longer used (because of the inlining)
1 parent 8084bd0 commit 1924ec3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cache.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,8 @@ type Item struct {
1717
Expiration int64
1818
}
1919

20-
func (item Item) expired(now int64) bool {
21-
if item.Expiration == 0 {
22-
return false
23-
}
24-
return now > item.Expiration
25-
}
26-
2720
// Returns true if the item has expired.
2821
func (item Item) Expired() bool {
29-
// "Inlining" of expired
3022
if item.Expiration == 0 {
3123
return false
3224
}

0 commit comments

Comments
 (0)