Skip to content

Commit

Permalink
fix: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikSardana committed Jan 17, 2025
1 parent 0d435d5 commit a458c94
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 89 deletions.
15 changes: 0 additions & 15 deletions helpdesk/helpdesk/doctype/hd_article/hd_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,3 @@ def title_slug(self) -> str:
:return: Generated slug
"""
return self.title.lower().replace(" ", "-")

def get_breadcrumbs(self):
breadcrumbs = [{"name": self.name, "label": self.title}]
current_category = frappe.get_doc("Category", self.category)
breadcrumbs.append(
{"name": current_category.name, "label": current_category.category_name}
)
while current_category.parent_category:
current_category = frappe.get_doc(
"Category", current_category.parent_category
)
breadcrumbs.append(
{"name": current_category.name, "label": current_category.category_name}
)
return breadcrumbs[::-1]
44 changes: 0 additions & 44 deletions helpdesk/templates/components/breadcrumbs/breadcrumbs.html

This file was deleted.

30 changes: 0 additions & 30 deletions helpdesk/templates/components/breadcrumbs/breadcrumbs.py

This file was deleted.

0 comments on commit a458c94

Please sign in to comment.