Remove unused _check_string_length()

On v2.1 API, the input validation is implemented with json-schema
and _check_string_length() becomes unused now.
This patch removes the method for cleanup.

Change-Id: I89d5e2ac7f4cd6e79dba13803ca796d9b8bc7165
This commit is contained in:
Ken'ichi Ohmichi 2015-09-24 00:35:45 +00:00
parent 2dae8b4c87
commit f801bb3486
1 changed files with 0 additions and 9 deletions

View File

@ -428,15 +428,6 @@ class ServersController(wsgi.Controller):
req.cache_db_instance(instance)
return instance
def _check_string_length(self, value, name, max_length=None):
try:
if isinstance(value, six.string_types):
value = value.strip()
utils.check_string_length(value, name, min_length=1,
max_length=max_length)
except exception.InvalidInput as e:
raise exc.HTTPBadRequest(explanation=e.format_message())
def _get_requested_networks(self, requested_networks):
"""Create a list of requested networks from the networks attribute."""
networks = []