loleaflet/src/control/Control.NotebookbarCalc.js    |   24 ----------
 loleaflet/src/control/Control.NotebookbarImpress.js |   32 -------------
 loleaflet/src/control/Control.NotebookbarWriter.js  |   48 --------------------
 3 files changed, 104 deletions(-)

New commits:
commit 8ea84768fd9875216adb0387a9ffd6a4f0aff66d
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Wed Jun 17 09:18:33 2020 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Jun 29 08:42:23 2020 +0200

    notebookbar: remove local tabs loading
    
    Change-Id: I5241d1360852cd1f450f211420c0782ca4a2a587
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97230
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/loleaflet/src/control/Control.NotebookbarCalc.js 
b/loleaflet/src/control/Control.NotebookbarCalc.js
index a6b95f3ef..0a5df17cc 100644
--- a/loleaflet/src/control/Control.NotebookbarCalc.js
+++ b/loleaflet/src/control/Control.NotebookbarCalc.js
@@ -5,22 +5,6 @@
 
 /* global */
 L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
-
-       selectedTab: function(tabText) {
-               switch (tabText) {
-               case 'HomeLabel':
-                       this.loadTab(this.getHomeTab());
-                       break;
-
-               case 'InsertLabel':
-                       this.loadTab(this.getInsertTab());
-                       break;
-
-               case 'ReviewLabel':
-                       this.loadTab(this.getReviewTab());
-                       break;
-               }
-       },
        
        getTabs: function() {
                return [
@@ -1555,14 +1539,6 @@ L.Control.NotebookbarCalc = 
L.Control.NotebookbarWriter.extend({
                                }
                        ]
                };
-       },
-
-       getInsertTab: function() {
-               return {};
-       },
-
-       getReviewTab: function() {
-               return {};
        }
 });
 
diff --git a/loleaflet/src/control/Control.NotebookbarImpress.js 
b/loleaflet/src/control/Control.NotebookbarImpress.js
index 0427a7ec0..600d9ad13 100644
--- a/loleaflet/src/control/Control.NotebookbarImpress.js
+++ b/loleaflet/src/control/Control.NotebookbarImpress.js
@@ -36,26 +36,6 @@ L.Control.NotebookbarImpress = 
L.Control.NotebookbarWriter.extend({
                        }
                ];
        },
-
-       selectedTab: function(tabText) {
-               switch (tabText) {
-               case 'HomeLabel':
-                       this.loadTab(this.getHomeTab());
-                       break;
-
-               case 'InsertLabel':
-                       this.loadTab(this.getInsertTab());
-                       break;
-
-               case 'ReviewLabel':
-                       this.loadTab(this.getReviewTab());
-                       break;
-
-               case 'TableLabel':
-                       this.loadTab(this.getTableTab());
-                       break;
-               }
-       },
        
        getTabs: function() {
                return [
@@ -1464,18 +1444,6 @@ L.Control.NotebookbarImpress = 
L.Control.NotebookbarWriter.extend({
                                }
                        ]
                };
-       },
-
-       getInsertTab: function() {
-               return {};
-       },
-
-       getReviewTab: function() {
-               return {};
-       },
-
-       getTableTab: function() {
-               return {};
        }
 });
 
diff --git a/loleaflet/src/control/Control.NotebookbarWriter.js 
b/loleaflet/src/control/Control.NotebookbarWriter.js
index 98a030c25..fb8e2b5a9 100644
--- a/loleaflet/src/control/Control.NotebookbarWriter.js
+++ b/loleaflet/src/control/Control.NotebookbarWriter.js
@@ -6,34 +6,6 @@
 /* global */
 L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
 
-       selectedTab: function(tabText) {
-               switch (tabText) {
-               case 'HomeLabel':
-                       this.loadTab(this.getHomeTab());
-                       break;
-
-               case 'InsertLabel':
-                       this.loadTab(this.getInsertTab());
-                       break;
-
-               case 'LayoutLabel':
-                       this.loadTab(this.getLayoutTab());
-                       break;
-
-               case 'ReferencesLabel':
-                       this.loadTab(this.getReferencesTab());
-                       break;
-
-               case 'TableLabel':
-                       this.loadTab(this.getTableTab());
-                       break;
-
-               case 'ReviewLabel':
-                       this.loadTab(this.getReviewTab());
-                       break;
-               }
-       },
-
        getTabs: function() {
                return [
                        {
@@ -1447,26 +1419,6 @@ L.Control.NotebookbarWriter = 
L.Control.Notebookbar.extend({
                                }
                        ]
                };
-       },
-
-       getInsertTab: function() {
-               return {};
-       },
-
-       getLayoutTab: function() {
-               return {};
-       },
-
-       getReferencesTab: function() {
-               return {};
-       },
-
-       getTableTab: function() {
-               return {};
-       },
-
-       getReviewTab: function() {
-               return {};
        }
 });
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to