Remove code we don't seem to need

pull/21833/head
Travis Ralston 2021-07-15 13:39:54 -06:00
parent 8278b2273d
commit 2690bb56f9
1 changed files with 0 additions and 29 deletions

View File

@ -214,15 +214,6 @@ export default class Notifications extends React.PureComponent<IProps, IState> {
rule, vectorState,
description: _t(definition.description),
});
// XXX: Do we need this block from the previous component?
/*
// if there was a rule which we couldn't parse, add it to the external list
if (rule && !vectorState) {
rule.description = ruleDefinition.description;
self.state.externalPushRules.push(rule);
}
*/
}
// Quickly sort the rules for display purposes
@ -246,26 +237,6 @@ export default class Notifications extends React.PureComponent<IProps, IState> {
}
}
// XXX: Do we need this block from the previous component?
/*
// Build the rules not managed by Vector UI
const otherRulesDescriptions = {
'.m.rule.message': _t('Notify for all other messages/rooms'),
'.m.rule.fallback': _t('Notify me for anything else'),
};
for (const i in defaultRules.others) {
const rule = defaultRules.others[i];
const ruleDescription = otherRulesDescriptions[rule.rule_id];
// Show enabled default rules that was modified by the user
if (ruleDescription && rule.enabled && !rule.default) {
rule.description = ruleDescription;
self.state.externalPushRules.push(rule);
}
}
*/
return preparedNewState;
}