[repository] remove unused check_session method and its test
Related to #1381328.
--- a/server/repository.py Tue Dec 15 10:20:26 2015 +0100
+++ b/server/repository.py Wed Jul 16 10:48:47 2014 +0200
@@ -654,12 +654,6 @@
"""open a new session for a given user and return its sessionid """
return self.new_session(login, **kwargs).sessionid
- def check_session(self, sessionid):
- """raise `BadConnectionId` if the connection is no more valid, else
- return its latest activity timestamp.
- """
- return self._get_session(sessionid).timestamp
-
def close(self, sessionid, txid=None, checkshuttingdown=True):
"""close the session with the given id"""
session = self._get_session(sessionid, txid=txid,
--- a/server/test/unittest_repository.py Tue Dec 15 10:20:26 2015 +0100
+++ b/server/test/unittest_repository.py Wed Jul 16 10:48:47 2014 +0200
@@ -150,12 +150,6 @@
self.assertTrue(cnxid)
repo.close(cnxid)
- def test_check_session(self):
- repo = self.repo
- cnxid = repo.connect(self.admlogin, password=self.admpassword)
- self.assertIsInstance(repo.check_session(cnxid), float)
- repo.close(cnxid)
- self.assertRaises(BadConnectionId, repo.check_session, cnxid)
def test_initial_schema(self):
schema = self.repo.schema