diff --git a/src/Avatar.js b/src/Avatar.js index 9889b480a..74b279c6f 100644 --- a/src/Avatar.js +++ b/src/Avatar.js @@ -37,13 +37,10 @@ module.exports = { switch (total % 3) { case 0: return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAIAAAADnC86AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrszQENADAIACB9QjNbxSKP4eagAFnTseHFErFYLBaLxWKxWCwWi8Vi8cX4CzAABSwCRWJw31gAAAAASUVORK5CYII="; - break; case 1: return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAIAAAADnC86AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrszQENADAIACB9chOaxgCP4eagAFk9seHFErFYLBaLxWKxWCwWi8Vi8cX4CzAAtKMCks/JG8MAAAAASUVORK5CYII="; - break; case 2: return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAIAAAADnC86AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrszQENADAIACB9YzNayQCP4eagADldseHFErFYLBaLxWKxWCwWi8Vi8cX4CzAAyiACeHwPiu4AAAAASUVORK5CYII="; - break; } } } diff --git a/src/ContextualMenu.js b/src/ContextualMenu.js index cabab0c37..cdfff952b 100644 --- a/src/ContextualMenu.js +++ b/src/ContextualMenu.js @@ -18,7 +18,6 @@ limitations under the License. 'use strict'; var React = require('react'); -var q = require('q'); // Shamelessly ripped off Modal.js. There's probably a better way // of doing reusable widgets like dialog boxes & menus where we go and diff --git a/src/skins/vector/views/molecules/BottomLeftMenu.js b/src/skins/vector/views/molecules/BottomLeftMenu.js index d7a252213..809da0ee2 100644 --- a/src/skins/vector/views/molecules/BottomLeftMenu.js +++ b/src/skins/vector/views/molecules/BottomLeftMenu.js @@ -17,12 +17,9 @@ limitations under the License. 'use strict'; var React = require('react'); -var classNames = require('classnames'); var dis = require('matrix-react-sdk/lib/dispatcher'); -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); - module.exports = React.createClass({ displayName: 'BottomLeftMenu', diff --git a/src/skins/vector/views/molecules/ContextualMenu.js b/src/skins/vector/views/molecules/ContextualMenu.js index 1f0069de7..e2d75da7b 100644 --- a/src/skins/vector/views/molecules/ContextualMenu.js +++ b/src/skins/vector/views/molecules/ContextualMenu.js @@ -17,11 +17,6 @@ limitations under the License. 'use strict'; var React = require('react'); -var classNames = require('classnames'); - -var dis = require('matrix-react-sdk/lib/dispatcher'); - -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); module.exports = React.createClass({ displayName: 'ContextualMenu', diff --git a/src/skins/vector/views/molecules/EventAsTextTile.js b/src/skins/vector/views/molecules/EventAsTextTile.js index b9d729eb6..698d2c152 100644 --- a/src/skins/vector/views/molecules/EventAsTextTile.js +++ b/src/skins/vector/views/molecules/EventAsTextTile.js @@ -18,7 +18,6 @@ limitations under the License. var React = require('react'); -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); var EventAsTextTileController = require('matrix-react-sdk/lib/controllers/molecules/EventAsTextTile') var sdk = require('matrix-react-sdk') var TextForEvent = require('matrix-react-sdk/lib/TextForEvent'); diff --git a/src/skins/vector/views/molecules/MImageTile.js b/src/skins/vector/views/molecules/MImageTile.js index 63825359f..34c2c5767 100644 --- a/src/skins/vector/views/molecules/MImageTile.js +++ b/src/skins/vector/views/molecules/MImageTile.js @@ -52,7 +52,6 @@ module.exports = React.createClass({ }, onClick: function(ev) { - var ms = ev.getModifierState(); if (ev.button == 0 && !ev.metaKey) { ev.preventDefault(); var content = this.props.mxEvent.getContent(); diff --git a/src/skins/vector/views/molecules/MRoomMemberTile.js b/src/skins/vector/views/molecules/MRoomMemberTile.js index d20b248e2..4e163e1d7 100644 --- a/src/skins/vector/views/molecules/MRoomMemberTile.js +++ b/src/skins/vector/views/molecules/MRoomMemberTile.js @@ -20,7 +20,6 @@ var React = require('react'); var MRoomMemberTileController = require('matrix-react-sdk/lib/controllers/molecules/MRoomMemberTile') -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); var sdk = require('matrix-react-sdk') var TextForEvent = require('matrix-react-sdk/lib/TextForEvent'); diff --git a/src/skins/vector/views/molecules/MemberTile.js b/src/skins/vector/views/molecules/MemberTile.js index 30ac6880a..e8b9eeac3 100644 --- a/src/skins/vector/views/molecules/MemberTile.js +++ b/src/skins/vector/views/molecules/MemberTile.js @@ -20,7 +20,6 @@ var React = require('react'); var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); var sdk = require('matrix-react-sdk') -var Modal = require('matrix-react-sdk/lib/Modal'); var ContextualMenu = require('../../../../ContextualMenu'); var MemberTileController = require('matrix-react-sdk/lib/controllers/molecules/MemberTile') diff --git a/src/skins/vector/views/molecules/MessageComposer.js b/src/skins/vector/views/molecules/MessageComposer.js index 8b6ff6af6..c94cade5f 100644 --- a/src/skins/vector/views/molecules/MessageComposer.js +++ b/src/skins/vector/views/molecules/MessageComposer.js @@ -20,7 +20,6 @@ var React = require('react'); var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); var MessageComposerController = require('matrix-react-sdk/lib/controllers/molecules/MessageComposer') -var ContentMessages = require('matrix-react-sdk/lib/ContentMessages'); var sdk = require('matrix-react-sdk') diff --git a/src/skins/vector/views/molecules/MessageTile.js b/src/skins/vector/views/molecules/MessageTile.js index 357d4bf97..386b19d35 100644 --- a/src/skins/vector/views/molecules/MessageTile.js +++ b/src/skins/vector/views/molecules/MessageTile.js @@ -20,7 +20,6 @@ var React = require('react'); var classNames = require("classnames"); -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); var sdk = require('matrix-react-sdk') var MessageTileController = require('matrix-react-sdk/lib/controllers/molecules/MessageTile') diff --git a/src/skins/vector/views/molecules/RoomCreate.js b/src/skins/vector/views/molecules/RoomCreate.js index d4541f421..cadc0fc02 100644 --- a/src/skins/vector/views/molecules/RoomCreate.js +++ b/src/skins/vector/views/molecules/RoomCreate.js @@ -17,12 +17,9 @@ limitations under the License. 'use strict'; var React = require('react'); -var classNames = require('classnames'); //var RoomCreateController = require('matrix-react-sdk/lib/controllers/molecules/RoomCreateController') -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); - module.exports = React.createClass({ displayName: 'RoomCreate', // mixins: [RoomCreateController], diff --git a/src/skins/vector/views/molecules/RoomDropTarget.js b/src/skins/vector/views/molecules/RoomDropTarget.js index c3e8aa1f8..b1e150779 100644 --- a/src/skins/vector/views/molecules/RoomDropTarget.js +++ b/src/skins/vector/views/molecules/RoomDropTarget.js @@ -17,12 +17,9 @@ limitations under the License. 'use strict'; var React = require('react'); -var classNames = require('classnames'); //var RoomDropTargetController = require('matrix-react-sdk/lib/controllers/molecules/RoomDropTargetController') -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); - module.exports = React.createClass({ displayName: 'RoomDropTarget', // mixins: [RoomDropTargetController], diff --git a/src/skins/vector/views/molecules/voip/CallView.js b/src/skins/vector/views/molecules/voip/CallView.js index b674fe2cb..8cccc3c3f 100644 --- a/src/skins/vector/views/molecules/voip/CallView.js +++ b/src/skins/vector/views/molecules/voip/CallView.js @@ -18,7 +18,6 @@ limitations under the License. var React = require('react'); -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); var sdk = require('matrix-react-sdk') var CallViewController = require( "matrix-react-sdk/lib/controllers/molecules/voip/CallView" diff --git a/src/skins/vector/views/molecules/voip/VideoView.js b/src/skins/vector/views/molecules/voip/VideoView.js index d3b8636ec..80160b78c 100644 --- a/src/skins/vector/views/molecules/voip/VideoView.js +++ b/src/skins/vector/views/molecules/voip/VideoView.js @@ -18,7 +18,6 @@ limitations under the License. var React = require('react'); -var MatrixClientPeg = require("matrix-react-sdk/lib/MatrixClientPeg"); var sdk = require('matrix-react-sdk') var VideoViewController = require('matrix-react-sdk/lib/controllers/molecules/voip/VideoView') diff --git a/src/skins/vector/views/organisms/LeftPanel.js b/src/skins/vector/views/organisms/LeftPanel.js index 9941cfa21..15612704a 100644 --- a/src/skins/vector/views/organisms/LeftPanel.js +++ b/src/skins/vector/views/organisms/LeftPanel.js @@ -26,7 +26,6 @@ module.exports = React.createClass({ var RoomList = sdk.getComponent('organisms.RoomList'); var BottomLeftMenu = sdk.getComponent('molecules.BottomLeftMenu'); var IncomingCallBox = sdk.getComponent('molecules.voip.IncomingCallBox'); - var RoomCreate = sdk.getComponent('molecules.RoomCreate'); return (