浏览代码

Merge pull request #981 from yujinqiu/clean_code

Clean useless code
DarienRaymond 7 年之前
父节点
当前提交
3ad03b8b4a
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      app/dns/server.go

+ 0 - 5
app/dns/server.go

@@ -28,11 +28,6 @@ func (r *DomainRecord) Expired() bool {
 	return r.Expire.Before(time.Now())
 	return r.Expire.Before(time.Now())
 }
 }
 
 
-func (r *DomainRecord) Inactive() bool {
-	now := time.Now()
-	return r.Expire.Before(now) || r.LastAccess.Add(time.Minute*5).Before(now)
-}
-
 type Server struct {
 type Server struct {
 	sync.Mutex
 	sync.Mutex
 	hosts   map[string]net.IP
 	hosts   map[string]net.IP