Skip to content

Commit

Permalink
Remove duplicate function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Mar 16, 2016
1 parent b7204bb commit 744ae45
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ckan/logic/validators.py
Expand Up @@ -264,15 +264,6 @@ def activity_type_exists(activity_type):
else:
raise Invalid('%s: %s' % (_('Not found'), _('Activity type')))

def resource_id_exists(value, context):

model = context['model']
session = context['session']

result = session.query(model.Resource).get(value)
if not result:
raise Invalid('%s: %s' % (_('Not found'), _('Resource')))
return value

# A dictionary mapping activity_type values from activity dicts to functions
# for validating the object_id values from those same activity dicts.
Expand Down

0 comments on commit 744ae45

Please sign in to comment.