]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove RpcCallback class
authorRussell Bryant <rbryant@redhat.com>
Tue, 2 Dec 2014 21:04:54 +0000 (21:04 +0000)
committerRussell Bryant <rbryant@redhat.com>
Thu, 4 Dec 2014 16:35:21 +0000 (16:35 +0000)
All users of the RpcCallback class have been converted to directly
define the oslo.messaging Target so this compatibility class is no
longer needed.

This is the final change of blueprint drop-rpc-compat.

Change-Id: I25474569850f3f2c176e7eee7aafa7ff0180b809

neutron/common/rpc.py

index 37e9e3273440f365295deae7ab1df220b23b5ea7..a2cbfe8e34ed4bac5b2a4d00bbee49d77a420b1f 100644 (file)
@@ -134,20 +134,6 @@ class RequestContextSerializer(om_serializer.Serializer):
                                load_admin_roles=False, **rpc_ctxt_dict)
 
 
-class RpcCallback(object):
-    '''
-    This class is created to facilitate migration from oslo-incubator
-    RPC layer implementation to oslo.messaging and is intended to set
-    callback version using oslo.messaging API once the migration is
-    applied.
-    '''
-    RPC_API_VERSION = '1.0'
-
-    def __init__(self):
-        super(RpcCallback, self).__init__()
-        self.target = messaging.Target(version=self.RPC_API_VERSION)
-
-
 class Service(service.Service):
     """Service object for binaries running on hosts.