server/session.py
changeset 10541 03bae22c8d0e
parent 10485 9d2416a504d3
child 10589 7c23b7de2b8d
child 11371 2cc16363d6a3
--- 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):