[server/session] remove unused cnx_meth function
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 20 Jul 2015 12:15:20 +0200
changeset 10541 03bae22c8d0e
parent 10540 d2449691fd48
child 10542 53a2b00b6758
[server/session] remove unused cnx_meth function
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):