server/repository.py
changeset 10339 5dc6dc2c0de9
parent 10338 f738180d499d
child 10340 233b4b49d968
--- a/server/repository.py	Tue Mar 17 15:46:40 2015 +0100
+++ b/server/repository.py	Tue Mar 17 15:55:52 2015 +0100
@@ -694,30 +694,6 @@
         session = self._get_session(sessionid, setcnxset=False)
         session.set_shared_data(key, value, txdata)
 
-    def commit(self, sessionid, txid=None):
-        """commit transaction for the session with the given id"""
-        self.debug('begin commit for session %s', sessionid)
-        try:
-            session = self._get_session(sessionid)
-            session.set_cnx(txid)
-            return session.commit()
-        except (ValidationError, Unauthorized):
-            raise
-        except Exception:
-            self.exception('unexpected error')
-            raise
-
-    def rollback(self, sessionid, txid=None):
-        """commit transaction for the session with the given id"""
-        self.debug('begin rollback for session %s', sessionid)
-        try:
-            session = self._get_session(sessionid)
-            session.set_cnx(txid)
-            session.rollback()
-        except Exception:
-            self.exception('unexpected error')
-            raise
-
     def close(self, sessionid, txid=None, checkshuttingdown=True):
         """close the session with the given id"""
         session = self._get_session(sessionid, txid=txid,