Remove RpcCallback class

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
This commit is contained in:
Russell Bryant 2014-12-02 21:04:54 +00:00
parent f76110be99
commit 6cadd13e8f

View 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.