From 3821f3c57bf0c0bc72f0e9c3bc3efea344a1316b Mon Sep 17 00:00:00 2001 From: Atin Malaviya Date: Wed, 10 Dec 2014 20:53:05 -0500 Subject: [PATCH] Took out StateSnapshot SessionListTTL also --- consul/state_store.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/consul/state_store.go b/consul/state_store.go index 4dd8564c4c..72538bb783 100644 --- a/consul/state_store.go +++ b/consul/state_store.go @@ -1825,16 +1825,6 @@ func (s *StateSnapshot) SessionList() ([]*structs.Session, error) { return out, err } -// SessionListTTL is used to list all the open sessions -func (s *StateSnapshot) SessionListTTL() ([]*structs.Session, error) { - res, err := s.store.sessionTable.GetTxn(s.tx, "ttl") - out := make([]*structs.Session, len(res)) - for i, raw := range res { - out[i] = raw.(*structs.Session) - } - return out, err -} - // ACLList is used to list all of the ACLs func (s *StateSnapshot) ACLList() ([]*structs.ACL, error) { res, err := s.store.aclTable.GetTxn(s.tx, "id")