[polari] mainWindow: Don't re-export unused imports



commit d50e462a15b4cfa7473ce1e5b88d982d432f19bc
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Aug 4 17:28:18 2021 +0200

    mainWindow: Don't re-export unused imports
    
    Those exports only exist to make eslint not complain about unused
    imports. We do need the imports to make sure the GTypes are registered
    before they are referenced in the template, but we can just as well
    mark the variables as unused.
    
    https://gitlab.gnome.org/GNOME/polari/-/merge_requests/208

 src/mainWindow.js | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 001698e1..f60bc2d6 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -1,9 +1,6 @@
 export {
     MainWindow,
-    FixedSizeFrame,
-    RoomList,
-    RoomStack,
-    UserList
+    FixedSizeFrame
 };
 
 import Gdk from 'gi://Gdk';
@@ -16,10 +13,10 @@ import Tp from 'gi://TelepathyGLib';
 
 import { AccountsMonitor } from './accountsMonitor.js';
 import { JoinDialog } from './joinDialog.js';
-import * as RoomList from './roomList.js'; // used in template
+import * as RoomList_ from './roomList.js'; // used in template
 import { RoomManager } from './roomManager.js';
-import * as RoomStack from './roomStack.js'; // used in template
-import * as UserList from './userList.js'; // used in template
+import * as RoomStack_ from './roomStack.js'; // used in template
+import * as UserList_ from './userList.js'; // used in template
 import * as Utils from './utils.js';
 
 const FixedSizeFrame = GObject.registerClass({


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]