From c0b56de91aa7d35f92f52e2b4662f5bbc3fabdf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolgang=20Hu=C3=9F?= Date: Wed, 20 Apr 2022 14:37:57 +0200 Subject: [PATCH] remove unused computed code --- .../DecayInformations/DecayInformation-Long.vue | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/frontend/src/components/DecayInformations/DecayInformation-Long.vue b/frontend/src/components/DecayInformations/DecayInformation-Long.vue index c4f200291..6e063df2d 100644 --- a/frontend/src/components/DecayInformations/DecayInformation-Long.vue +++ b/frontend/src/components/DecayInformations/DecayInformation-Long.vue @@ -82,22 +82,5 @@ export default { type: Object, }, }, - computed: { - duration() { - return this.$moment.duration(new Date(this.decay.end) - new Date(this.decay.start))._data - }, - durationText() { - const order = ['years', 'months', 'days', 'hours', 'minutes', 'seconds'] - const result = [] - order.forEach((timeSpan) => { - if (this.duration[timeSpan] > 0) { - // eslint-disable-next-line @intlify/vue-i18n/no-dynamic-keys - const locale = this.$t(`time.${timeSpan}`) - result.push(`${this.duration[timeSpan]} ${locale}`) - } - }) - return result.join(', ') - }, - }, }