瀏覽代碼

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

Book Pauk 5 年之前
父節點
當前提交
7ee23ec38f

+ 0 - 9
client/components/Reader/Reader.vue

@@ -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() {

+ 1 - 1
client/components/Reader/RecentBooksPage/RecentBooksPage.vue

@@ -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,

+ 0 - 3
client/components/Reader/share/BookParser.js

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

+ 0 - 1
client/components/Reader/share/bookManager.js

@@ -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;
     }
     }