Skip to content

Commit

Permalink
[#1359,licenses][xs]: remove unused method get_by_title on LicenseReg…
Browse files Browse the repository at this point in the history
…ister.
  • Loading branch information
rufuspollock committed Feb 13, 2012
1 parent 8b89ced commit a8b0e3b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ckan/model/license.py
Expand Up @@ -97,16 +97,6 @@ def __iter__(self):
def __len__(self):
return len(self.licenses)

# non-dict like interface

def get_by_title(self, title, default=None):
for license in self.licenses:
if title == license.title or title == license.title.split('::')[1]:
return license
else:
return default


default_license_list = [
{
"domain_content": False,
Expand Down

0 comments on commit a8b0e3b

Please sign in to comment.