Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove unused tag-drop-link component (#30849)

Jarek Radosz56f9a174fcca
diff --git a/app/assets/javascripts/discourse/app/components/tag-drop-link.hbs b/app/assets/javascripts/discourse/app/components/tag-drop-link.hbs
deleted file mode 100644
index bb6476e53fa..00000000000
--- a/app/assets/javascripts/discourse/app/components/tag-drop-link.hbs
+++ /dev/null
@@ -1 +0,0 @@
-{{this.tagId}}
\ No newline at end of file
diff --git a/app/assets/javascripts/discourse/app/components/tag-drop-link.js b/app/assets/javascripts/discourse/app/components/tag-drop-link.js
deleted file mode 100644
index d91204c9b25..00000000000
--- a/app/assets/javascripts/discourse/app/components/tag-drop-link.js
+++ /dev/null
@@ -1,43 +0,0 @@
-import Component from "@ember/component";
-import {
- attributeBindings,
- classNameBindings,
- tagName,
-} from "@ember-decorators/component";
-import discourseComputed from "discourse/lib/decorators";
-import getURL from "discourse/lib/get-url";
-import DiscourseURL from "discourse/lib/url";
-
-@tagName("a")
-@classNameBindings(
- ":tag-badge-wrapper",
- ":badge-wrapper",
- ":bullet",
- "tagClass"
-)
-@attributeBindings("href")
-export default class TagDropLink extends Component {
- @discourseComputed("tagId", "category")
- href(tagId, category) {
- let path;
-
- if (category) {
- path = "/tags" + category.path + "/" + tagId;
- } else {
- path = "/tag/" + tagId;
- }
-
- return getURL(path);
- }
-
- @discourseComputed("tagId")
- tagClass(tagId) {
- return "tag-" + tagId;
- }
-
- click(e) {
- e.preventDefault();
- DiscourseURL.routeTo(this.href);
- return true;
- }
-}