mirror of https://github.com/vector-im/riot-web
Comment out unused code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
f52405de38
commit
0c09158f2a
|
@ -28,13 +28,13 @@ import { FontWatcher } from "../../../../../settings/watchers/FontWatcher";
|
||||||
import { RecheckThemePayload } from '../../../../../dispatcher/payloads/RecheckThemePayload';
|
import { RecheckThemePayload } from '../../../../../dispatcher/payloads/RecheckThemePayload';
|
||||||
import { Action } from '../../../../../dispatcher/actions';
|
import { Action } from '../../../../../dispatcher/actions';
|
||||||
import { IValidationResult, IFieldState } from '../../../elements/Validation';
|
import { IValidationResult, IFieldState } from '../../../elements/Validation';
|
||||||
import StyledRadioButton from '../../../elements/StyledRadioButton';
|
//import StyledRadioButton from '../../../elements/StyledRadioButton';
|
||||||
import StyledCheckbox from '../../../elements/StyledCheckbox';
|
import StyledCheckbox from '../../../elements/StyledCheckbox';
|
||||||
import SettingsFlag from '../../../elements/SettingsFlag';
|
import SettingsFlag from '../../../elements/SettingsFlag';
|
||||||
import Field from '../../../elements/Field';
|
import Field from '../../../elements/Field';
|
||||||
import EventTilePreview from '../../../elements/EventTilePreview';
|
import EventTilePreview from '../../../elements/EventTilePreview';
|
||||||
import StyledRadioGroup from "../../../elements/StyledRadioGroup";
|
import StyledRadioGroup from "../../../elements/StyledRadioGroup";
|
||||||
import classNames from 'classnames';
|
//import classNames from 'classnames';
|
||||||
import { SettingLevel } from "../../../../../settings/SettingLevel";
|
import { SettingLevel } from "../../../../../settings/SettingLevel";
|
||||||
import {UIFeature} from "../../../../../settings/UIFeature";
|
import {UIFeature} from "../../../../../settings/UIFeature";
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
||||||
this.setState({customThemeUrl: e.target.value});
|
this.setState({customThemeUrl: e.target.value});
|
||||||
};
|
};
|
||||||
|
|
||||||
private onLayoutChange = (e: React.ChangeEvent<HTMLInputElement>): void => {
|
/*private onLayoutChange = (e: React.ChangeEvent<HTMLInputElement>): void => {
|
||||||
const val = e.target.value === "true";
|
const val = e.target.value === "true";
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
@ -221,7 +221,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
||||||
});
|
});
|
||||||
|
|
||||||
SettingsStore.setValue("useIRCLayout", null, SettingLevel.DEVICE, val);
|
SettingsStore.setValue("useIRCLayout", null, SettingLevel.DEVICE, val);
|
||||||
};
|
};*/
|
||||||
|
|
||||||
private renderThemeSection() {
|
private renderThemeSection() {
|
||||||
const themeWatcher = new ThemeWatcher();
|
const themeWatcher = new ThemeWatcher();
|
||||||
|
@ -342,7 +342,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderLayoutSection = () => {
|
/*private renderLayoutSection = () => {
|
||||||
return <div className="mx_SettingsTab_section mx_AppearanceUserSettingsTab_Layout">
|
return <div className="mx_SettingsTab_section mx_AppearanceUserSettingsTab_Layout">
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Message layout")}</span>
|
<span className="mx_SettingsTab_subheading">{_t("Message layout")}</span>
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>;
|
</div>;
|
||||||
};
|
};*/
|
||||||
|
|
||||||
private renderAdvancedSection() {
|
private renderAdvancedSection() {
|
||||||
if (!SettingsStore.getValue(UIFeature.AdvancedSettings)) return null;
|
if (!SettingsStore.getValue(UIFeature.AdvancedSettings)) return null;
|
||||||
|
|
Loading…
Reference in New Issue