~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/views/api.py

  • Committer: Brad Crittenden
  • Date: 2013-07-17 14:52:29 UTC
  • mto: This revision was merged to the branch mainline in revision 312.
  • Revision ID: bac@canonical.com-20130717145229-rzuyekqm0xbewtma
Remove dead code

Show diffs side-by-side

added added

removed removed

Lines of Context:
354
354
        return headerlist
355
355
 
356
356
    def _charm_file(self, charm, trailing):
357
 
        # XXX: BradCrittenden 2013-07-17 remove this shim when possible.
358
 
        #if isinstance(charm, dict):
359
 
        #    charm = Charm(charm)
360
357
        path = trailing.split('/', 1)[1]
361
358
        file_data = charm.files.get(quote_key(path.split('/')[-1]))
362
359
        if file_data is not None: