Remove unused stuff

This commit is contained in:
David Baker 2015-09-25 15:33:38 +01:00
parent 796f424a3f
commit f778f6adf9
20 changed files with 2 additions and 44 deletions

View File

@ -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;
}
}
}

View File

@ -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

View File

@ -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',

View File

@ -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',

View File

@ -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');

View File

@ -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();

View File

@ -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');

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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],

View File

@ -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],

View File

@ -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"

View File

@ -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')

View File

@ -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 (
<aside className="mx_LeftPanel">

View File

@ -18,7 +18,6 @@ limitations under the License.
var NotifierController = require('matrix-react-sdk/lib/controllers/organisms/Notifier')
var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg');
var TextForEvent = require('matrix-react-sdk/lib/TextForEvent');
var extend = require('matrix-react-sdk/lib/extend');
var dis = require('matrix-react-sdk/lib/dispatcher');

View File

@ -23,7 +23,6 @@ var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg');
var sdk = require('matrix-react-sdk')
var classNames = require("classnames");
var filesize = require('filesize');
var q = require('q');
var RoomViewController = require('matrix-react-sdk/lib/controllers/organisms/RoomView')

View File

@ -42,6 +42,7 @@ module.exports = React.createClass({
},
changePassword: function() {
var ChangePassword = sdk.getComponent('molecules/ChangePassword');
Modal.createDialog(ChangePassword);
},
@ -61,7 +62,6 @@ module.exports = React.createClass({
case this.Phases.Display:
var EditableText = sdk.getComponent('atoms/EditableText');
var EnableNotificationsButton = sdk.getComponent('atoms/EnableNotificationsButton');
var ChangePassword = sdk.getComponent('molecules/ChangePassword');
return (
<div className="mx_UserSettings">
<div className="mx_UserSettings_User">

View File

@ -23,7 +23,6 @@ var MatrixChatController = require('matrix-react-sdk/lib/controllers/pages/Matri
// should be atomised
var Loader = require("react-loader");
var classNames = require("classnames");
var dis = require('matrix-react-sdk/lib/dispatcher');

View File

@ -73,18 +73,6 @@ module.exports = React.createClass({
});
},
getUserIdSuffix: function() {
return '';
var actualHsUrl = document.createElement('a');
actualHsUrl.href = this.getHsUrl();
var defaultHsUrl = document.createElement('a');
defaultHsUrl.href = this.DEFAULT_HS_URL;
if (actualHsUrl.host == defaultHsUrl.host) {
return ':matrix.org';
}
return '';
},
onServerUrlChanged: function(newUrl) {
this.customHsUrl = this.refs.serverConfig.getHsUrl();
this.customIsUrl = this.refs.serverConfig.getIsUrl();
@ -101,7 +89,7 @@ module.exports = React.createClass({
<div>
<form onSubmit={this.onInitialStageSubmit}>
<input className="mx_Login_field" type="text" ref="email" placeholder="Email address" defaultValue={this.savedParams.email} /><br />
<input className="mx_Login_field" type="text" ref="username" placeholder="User name" defaultValue={this.savedParams.username} />{this.getUserIdSuffix()}<br />
<input className="mx_Login_field" type="text" ref="username" placeholder="User name" defaultValue={this.savedParams.username} /><br />
<input className="mx_Login_field" type="password" ref="password" placeholder="Password" defaultValue={this.savedParams.password} /><br />
<input className="mx_Login_field" type="password" ref="confirmPassword" placeholder="Confirm password" defaultValue={this.savedParams.confirmPassword} /><br />