Browse Source

Clean useless code

Jinqiu Yu 7 năm trước cách đây
mục cha
commit
33e090befe
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  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())
 }
 
-func (r *DomainRecord) Inactive() bool {
-	now := time.Now()
-	return r.Expire.Before(now) || r.LastAccess.Add(time.Minute*5).Before(now)
-}
-
 type Server struct {
 	sync.Mutex
 	hosts   map[string]net.IP