From ac655612a77172b316349b1456a9b2468a565c7c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Feb 2017 07:18:26 +0900 Subject: [PATCH] [Client] Remove an unused mixin --- src/web/app/desktop/mixins.js | 1 - src/web/app/desktop/scripts/open-window.js | 8 -------- 2 files changed, 9 deletions(-) delete mode 100644 src/web/app/desktop/scripts/open-window.js diff --git a/src/web/app/desktop/mixins.js b/src/web/app/desktop/mixins.js index 4a14b81763..9e93e5e6e5 100644 --- a/src/web/app/desktop/mixins.js +++ b/src/web/app/desktop/mixins.js @@ -4,7 +4,6 @@ module.exports = me => { if (me) require('./scripts/stream')(me); require('./scripts/user-preview'); - require('./scripts/open-window'); riot.mixin('notify', { notify: require('./scripts/notify') diff --git a/src/web/app/desktop/scripts/open-window.js b/src/web/app/desktop/scripts/open-window.js deleted file mode 100644 index 3f7cc424e0..0000000000 --- a/src/web/app/desktop/scripts/open-window.js +++ /dev/null @@ -1,8 +0,0 @@ -const riot = require('riot'); - -riot.mixin('open-window', { - openWindow: (name, opts) => { - const window = document.body.appendChild(document.createElement(name)); - return riot.mount(window, opts)[0]; - } -});