fix: remove old icon handling code (#7141)

* fix: remove old icon handling code

* fix: remove calls to getCommentIcon

* chore: delete the old icon class
This commit is contained in:
Beka Westberg
2023-06-13 15:41:07 -07:00
committed by GitHub
parent c6fbb85a69
commit aeee278767
13 changed files with 38 additions and 326 deletions

View File

@@ -75,8 +75,6 @@ export class RenderInfo {
/** An array of input rows on the block. */
inputRows: InputRow[] = [];
/** An array of measurable objects containing hidden icons. */
hiddenIcons: Icon[] = [];
topRow: TopRow;
bottomRow: BottomRow;
@@ -174,9 +172,7 @@ export class RenderInfo {
const icons = this.block_.getIcons();
for (let i = 0, icon; (icon = icons[i]); i++) {
const iconInfo = new Icon(this.constants_, icon);
if (this.isCollapsed && icon.collapseHidden) {
this.hiddenIcons.push(iconInfo);
} else {
if (!this.isCollapsed || icon.isShownWhenCollapsed()) {
activeRow.elements.push(iconInfo);
}
}