Skip to content

Commit

Permalink
remove unused/uncovered code
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkav committed Aug 23, 2018
1 parent e76dc2b commit 0589fb0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
15 changes: 0 additions & 15 deletions connexion/operations/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,21 +198,6 @@ def _get_path_arguments(self, path_params, sanitize):
kwargs[key] = value
return kwargs

def _get_body_argument(self, body, arguments, has_kwargs):
"""
extract handler function arguments from the request body
argument can be renamed by setting the "x-body-name" extension
in the body schema, otherwise the body will be passed to the
handler function as an argument named "body".
"""
body_schema = self.body_schema
if body_schema:
x_body_name = body_schema.get('x-body-name', 'body')
logger.debug('x-body-name is %s' % x_body_name)
if x_body_name in arguments or has_kwargs:
return {x_body_name: body}
return {}

@abc.abstractproperty
def parameters(self):
"""
Expand Down
4 changes: 0 additions & 4 deletions connexion/operations/swagger2.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ def __init__(self, api, method, path, operation, resolver, app_produces, app_con
logger.debug('consumes: %s', self.consumes)
logger.debug('produces: %s', self.produces)

@property
def _spec_definitions(self):
return self.definitions_map

@property
def parameters(self):
return self._parameters
Expand Down

0 comments on commit 0589fb0

Please sign in to comment.