Commit 4e86c8e7 authored by dindigala's avatar dindigala
Browse files

refactor: remove obsolete code

parent 0c12a55d
......@@ -336,25 +336,6 @@ export default {
<style lang="scss">
/* not in scope to style the text */
.annotation {
background-color: $grey-4;
border-bottom: 1px solid;
/**
* adding a linting exception here,
* because 1px is invalid, but needed here
* adding a global rule for this would introduce unnecessary error proneness
*/
/* stylelint-disable */
margin: 0 1px;
padding: 1px 1px 2px 1px;
/* stylelint-enable */
white-space: nowrap;
@media (prefers-color-scheme: dark) {
background-color: $grey-9;
}
}
.annotation-disabled {
border-bottom: 0;
padding-bottom: inherit;
......
......@@ -218,28 +218,6 @@ export default {
));
},
updateNestedMotifToggle(id, annotationClassOperation) {
const element = this.getElementById(id);
if (!element) {
return;
}
this.updateTextContentClass(
element,
annotationClassOperation,
'annotation-disabled',
);
const nextId = element.getAttribute('data-next');
if (!nextId) {
return;
}
this.updateNestedMotifToggle(nextId, annotationClassOperation);
},
updateTextContentClass(element, task = 'add', ...className) {
if (!element) {
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment