Удален устаревший код

This commit is contained in:
Book Pauk
2019-11-27 17:33:30 +07:00
parent eebf17c42c
commit 7ee23ec38f
4 changed files with 1 additions and 14 deletions

View File

@@ -320,15 +320,6 @@ class Reader extends Vue {
}); });
this.loadSettings(); this.loadSettings();
//TODO: убрать в будущем
if (this.showToolButton['history']) {
const newShowToolButton = Object.assign({}, this.showToolButton);
newShowToolButton['recentBooks'] = true;
delete newShowToolButton['history'];
const newSettings = Object.assign({}, this.settings, { showToolButton: newShowToolButton });
this.commit('reader/setSettings', newSettings);
}
} }
mounted() { mounted() {

View File

@@ -211,7 +211,7 @@ class RecentBooksPage extends Vue {
a.middleName a.middleName
]).join(' ')); ]).join(' '));
author = authorNames.join(', '); author = authorNames.join(', ');
} else { } else {//TODO: убрать в будущем
author = _.compact([ author = _.compact([
fb2.lastName, fb2.lastName,
fb2.firstName, fb2.firstName,

View File

@@ -32,9 +32,6 @@ export default class BookParser {
//defaults //defaults
let fb2 = { let fb2 = {
firstName: '',
middleName: '',
lastName: '',
bookTitle: '', bookTitle: '',
}; };

View File

@@ -319,7 +319,6 @@ class BookManager {
metaOnly(book) { metaOnly(book) {
let result = Object.assign({}, book); let result = Object.assign({}, book);
delete result.data;//можно будет убрать эту строку со временем
delete result.parsed; delete result.parsed;
return result; return result;
} }