Skip to content

Commit ee4aff6

Browse files
Remove unused async and unused computed properties
1 parent 60e4c67 commit ee4aff6

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/renderer/components/data-settings/data-settings.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ export default defineComponent({
4444
}
4545
},
4646
computed: {
47-
backendPreference: function () {
48-
return this.$store.getters.getBackendPreference
49-
},
50-
backendFallback: function () {
51-
return this.$store.getters.getBackendFallback
52-
},
5347
profileList: function () {
5448
return this.$store.getters.getProfileList
5549
},
@@ -208,7 +202,7 @@ export default defineComponent({
208202
showToast(this.$t('Settings.Data Settings.All subscriptions and profiles have been successfully imported'))
209203
},
210204

211-
importCsvYouTubeSubscriptions: async function(textDecode) { // first row = header, last row = empty
205+
importCsvYouTubeSubscriptions: function(textDecode) { // first row = header, last row = empty
212206
const youtubeSubscriptions = textDecode.split('\n').filter(sub => {
213207
return sub !== ''
214208
})
@@ -250,7 +244,7 @@ export default defineComponent({
250244
this.updateShowProgressBar(false)
251245
},
252246

253-
importYouTubeSubscriptions: async function (textDecode) {
247+
importYouTubeSubscriptions: function (textDecode) {
254248
const subscriptions = []
255249
let count = 0
256250

@@ -288,7 +282,7 @@ export default defineComponent({
288282
this.updateShowProgressBar(false)
289283
},
290284

291-
importOpmlYouTubeSubscriptions: async function (data) {
285+
importOpmlYouTubeSubscriptions: function (data) {
292286
let xmlDom
293287
const domParser = new DOMParser()
294288
try {
@@ -362,7 +356,7 @@ export default defineComponent({
362356
this.updateShowProgressBar(false)
363357
},
364358

365-
importNewPipeSubscriptions: async function (newPipeData) {
359+
importNewPipeSubscriptions: function (newPipeData) {
366360
if (typeof newPipeData.subscriptions === 'undefined') {
367361
showToast(this.$t('Settings.Data Settings.Invalid subscriptions file'))
368362

0 commit comments

Comments
 (0)