From efd4ff9c2584de9acfbae432f889e222f5058ea1 Mon Sep 17 00:00:00 2001 From: Wu Wenxiang Date: Wed, 19 Feb 2014 21:58:48 +0800 Subject: [PATCH] Remove unused function Romove unused function stub_out_rate_limiting in cinder/tests/api/fakes.py Change-Id: Ib6fea599eacb140108ca4293cdd089b010a8b979 Closes-Bug: #1282098 --- cinder/tests/api/fakes.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/cinder/tests/api/fakes.py b/cinder/tests/api/fakes.py index 822363d88..4f3bfd7a0 100644 --- a/cinder/tests/api/fakes.py +++ b/cinder/tests/api/fakes.py @@ -83,19 +83,6 @@ def wsgi_app(inner_app_v2=None, fake_auth=True, fake_auth_context=None, return mapper -def stub_out_rate_limiting(stubs): - def fake_rate_init(self, app): - # super(limits.RateLimitingMiddleware, self).__init__(app) - self.application = app - - # FIXME(ja): unsure about limits in volumes - # stubs.Set(cinder.api.openstack.compute.limits.RateLimitingMiddleware, - # '__init__', fake_rate_init) - - # stubs.Set(cinder.api.openstack.compute.limits.RateLimitingMiddleware, - # '__call__', fake_wsgi) - - def stub_out_key_pair_funcs(stubs, have_key_pair=True): def key_pair(context, user_id): return [dict(name='key', public_key='public_key')] -- 2.45.2