store: remove unused code

release-2.0
Jonathan Boulle 2014-10-16 12:28:05 -07:00
parent 6a30d3ba04
commit 2cd6594485
1 changed files with 0 additions and 20 deletions

View File

@ -1,20 +0,0 @@
package store
import (
"strconv"
"time"
)
// Convert string duration to time format
func TTL(duration string) (time.Time, error) {
if duration != "" {
duration, err := strconv.Atoi(duration)
if err != nil {
return Permanent, err
}
return time.Now().Add(time.Second * (time.Duration)(duration)), nil
} else {
return Permanent, nil
}
}