Skip to content

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

DEV: Remove two unused components (#37423)

Jarek Radosz4713e3abc876
diff --git a/frontend/discourse/admin/components/admin-penalty-history.gjs b/frontend/discourse/admin/components/admin-penalty-history.gjs
deleted file mode 100644
index 5608993d5f7..00000000000
--- a/frontend/discourse/admin/components/admin-penalty-history.gjs
+++ /dev/null
@@ -1,41 +0,0 @@
-/* eslint-disable ember/no-classic-components */
-import Component from "@ember/component";
-import { classNames } from "@ember-decorators/component";
-import discourseComputed from "discourse/lib/decorators";
-import { i18n } from "discourse-i18n";
-
-@classNames("penalty-history")
-export default class AdminPenaltyHistory extends Component {
- @discourseComputed("user.penalty_counts.suspended")
- suspendedCountClass(count) {
- if (count > 0) {
- return "danger";
- }
- return "";
- }
-
- @discourseComputed("user.penalty_counts.silenced")
- silencedCountClass(count) {
- if (count > 0) {
- return "danger";
- }
- return "";
- }
-
- <template>
- <div
- class="suspended-count {{this.suspendedCountClass}}"
- title={{i18n "admin.user.last_six_months"}}
- >
- <label>{{i18n "admin.user.suspended_count"}}</label>
- <span>{{this.user.penalty_counts.suspended}}</span>
- </div>
- <div
- class="silenced-count {{this.silencedCountClass}}"
- title={{i18n "admin.user.last_six_months"}}
- >
- <label>{{i18n "admin.user.silenced_count"}}</label>
- <span>{{this.user.penalty_counts.silenced}}</span>
- </div>
- </template>
-}
diff --git a/frontend/discourse/admin/components/moderation-history-item.js b/frontend/discourse/admin/components/moderation-history-item.js
deleted file mode 100644
index 462127d60b2..00000000000
--- a/frontend/discourse/admin/components/moderation-history-item.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/* eslint-disable ember/no-classic-components */
-import Component from "@ember/component";
-import { tagName } from "@ember-decorators/component";
-
-@tagName("tr")
-export default class ModerationHistoryItem extends Component {}