From 02a2e06d529ede052d83586616554a2a4c946116 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 13 Oct 2015 16:03:24 +0100 Subject: [PATCH] unused code --- src/controllers/molecules/ChangeDisplayName.js | 3 --- src/controllers/organisms/CasLogin.js | 1 - src/controllers/organisms/MemberList.js | 1 - src/controllers/pages/MatrixChat.js | 1 - 4 files changed, 6 deletions(-) diff --git a/src/controllers/molecules/ChangeDisplayName.js b/src/controllers/molecules/ChangeDisplayName.js index 700661f9ca..7e49b8f725 100644 --- a/src/controllers/molecules/ChangeDisplayName.js +++ b/src/controllers/molecules/ChangeDisplayName.js @@ -16,7 +16,6 @@ limitations under the License. 'use strict'; -var React = require('react'); var MatrixClientPeg = require("../../MatrixClientPeg"); module.exports = { @@ -51,8 +50,6 @@ module.exports = { }, changeDisplayname: function(new_displayname) { - var cli = MatrixClientPeg.get(); - this.setState({ busy: true, errorString: null, diff --git a/src/controllers/organisms/CasLogin.js b/src/controllers/organisms/CasLogin.js index 9c58d32c06..b01c3781b0 100644 --- a/src/controllers/organisms/CasLogin.js +++ b/src/controllers/organisms/CasLogin.js @@ -16,7 +16,6 @@ limitations under the License. 'use strict'; -var React = require("react"); var MatrixClientPeg = require("../../MatrixClientPeg"); var Cas = require("../../CasLogic"); diff --git a/src/controllers/organisms/MemberList.js b/src/controllers/organisms/MemberList.js index 22e7985165..3aaadf3ab4 100644 --- a/src/controllers/organisms/MemberList.js +++ b/src/controllers/organisms/MemberList.js @@ -26,7 +26,6 @@ module.exports = { var cli = MatrixClientPeg.get(); var room = cli.getRoom(this.props.roomId); if (!room) return { members: [] }; - var all_members = room.currentState.members; this.memberDict = this.getMemberDict(); diff --git a/src/controllers/pages/MatrixChat.js b/src/controllers/pages/MatrixChat.js index 2a56079708..2a712b22f6 100644 --- a/src/controllers/pages/MatrixChat.js +++ b/src/controllers/pages/MatrixChat.js @@ -18,7 +18,6 @@ var MatrixClientPeg = require("../../MatrixClientPeg"); var RoomListSorter = require("../../RoomListSorter"); var Presence = require("../../Presence"); var dis = require("../../dispatcher"); -var q = require("q"); var sdk = require('../../index'); var MatrixTools = require('../../MatrixTools');