diff -r d2449691fd48 -r 03bae22c8d0e server/session.py --- a/server/session.py Mon Jul 20 11:03:09 2015 +0200 +++ b/server/session.py Mon Jul 20 12:15:20 2015 +0200 @@ -981,18 +981,6 @@ args['fset'] = write_attr return property(**args) -def cnx_meth(meth_name): - """return a function forwarding calls to connection. - - This is to be used by session""" - @deprecated('[3.19] use a Connection object instead') - def meth_from_cnx(session, *args, **kwargs): - result = getattr(session._cnx, meth_name)(*args, **kwargs) - if getattr(result, '_cw', None) is not None: - result._cw = session - return result - meth_from_cnx.__doc__ = getattr(Connection, meth_name).__doc__ - return meth_from_cnx class Timestamp(object):