Skip to content

Commit

Permalink
Remove redundant properties from service model
Browse files Browse the repository at this point in the history
We’re not using these anywhere now.
  • Loading branch information
quis committed Mar 4, 2019
1 parent eff86d2 commit 87e62a0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/models/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ def get_templates(self, template_type='all', template_folder_id=None):
def available_template_types(self):
return list(filter(self.has_permission, self.TEMPLATE_TYPES))

@property
def has_templates(self):
return bool(self.all_templates)

@property
def has_required_templates(self):
return any((
Expand All @@ -181,9 +177,6 @@ def has_required_templates(self):
(self.volume_letter and self.has_letter_templates),
))

def has_folders(self):
return bool(self.all_template_folders)

@property
def has_multiple_template_types(self):
return len({
Expand Down

0 comments on commit 87e62a0

Please sign in to comment.