From dc70eacbe57514abec97ba97ba143983b28ae843 Mon Sep 17 00:00:00 2001 From: Takenori Yoshimatsu Date: Tue, 27 Jan 2015 21:59:30 +0900 Subject: [PATCH] Remove unused content_type_params() content_type_params() is not used at any places. Then this patch removes it. Change-Id: I17b6b2347b2bfb5c859d1d0bbd239629a13ed9fa --- nova/api/openstack/urlmap.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/nova/api/openstack/urlmap.py b/nova/api/openstack/urlmap.py index 84fad89fab7f..1b80e85afe88 100644 --- a/nova/api/openstack/urlmap.py +++ b/nova/api/openstack/urlmap.py @@ -132,14 +132,6 @@ class Accept(object): return best_content_type, best_params - def content_type_params(self, best_content_type): - """Find parameters in Accept header for given content type.""" - for content_type, params in self._content_types: - if best_content_type == content_type: - return params - - return {} - def _match_mask(self, mask, content_type): if '*' not in mask: return content_type == mask