Remove legacy sublist sizing

pull/21833/head
Travis Ralston 2020-06-04 16:36:14 -06:00
parent 2fe56276f2
commit 434f6ea4d4
1 changed files with 0 additions and 11 deletions

View File

@ -127,8 +127,6 @@ const TAG_AESTHETICS: {
};
export default class RoomList2 extends React.Component<IProps, IState> {
private sublistSizes: { [tagId: string]: number } = {};
private sublistCollapseStates: { [tagId: string]: boolean } = {};
private searchFilter: NameFilterCondition = new NameFilterCondition();
constructor(props: IProps) {
@ -138,7 +136,6 @@ export default class RoomList2 extends React.Component<IProps, IState> {
sublists: {},
layouts: new Map<TagID, ListLayout>(),
};
this.loadSublistSizes();
}
public componentDidUpdate(prevProps: Readonly<IProps>): void {
@ -170,14 +167,6 @@ export default class RoomList2 extends React.Component<IProps, IState> {
});
}
private loadSublistSizes() {
const sizesJson = window.localStorage.getItem("mx_roomlist_sizes");
if (sizesJson) this.sublistSizes = JSON.parse(sizesJson);
const collapsedJson = window.localStorage.getItem("mx_roomlist_collapsed");
if (collapsedJson) this.sublistCollapseStates = JSON.parse(collapsedJson);
}
private renderSublists(): React.ReactElement[] {
const components: React.ReactElement[] = [];