From da73b316ff6db948834b8cb8c843888be1ab3f52 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 25 Oct 2021 12:12:16 +0200 Subject: [PATCH] Remove deprecated icons that where replaced (#10371) --- build-scripts/gulp/gen-icons-json.js | 5 ++--- src/components/ha-icon.ts | 20 -------------------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/build-scripts/gulp/gen-icons-json.js b/build-scripts/gulp/gen-icons-json.js index 42563d15af..7fce535c4d 100644 --- a/build-scripts/gulp/gen-icons-json.js +++ b/build-scripts/gulp/gen-icons-json.js @@ -99,6 +99,7 @@ const findDifferentiator = (curString, prevString) => { gulp.task("gen-icons-json", (done) => { const meta = getMeta(); + const metaAndRemoved = addRemovedMeta(meta); const split = splitBySize(metaAndRemoved); @@ -138,11 +139,9 @@ gulp.task("gen-icons-json", (done) => { JSON.stringify({ version: package.version, parts }) ); - const orderedMeta = orderMeta(meta); - fs.writeFileSync( path.resolve(OUTPUT_DIR, "iconList.json"), - JSON.stringify(orderedMeta.map((icon) => icon.name)) + JSON.stringify(orderMeta(meta).map((icon) => icon.name)) ); done(); diff --git a/src/components/ha-icon.ts b/src/components/ha-icon.ts index 2c829299b4..5a353e946e 100644 --- a/src/components/ha-icon.ts +++ b/src/components/ha-icon.ts @@ -52,18 +52,6 @@ const mdiDeprecatedIcons: DeprecatedIcon = { newName: "cast-variant", removeIn: "2021.12", }, - application: { - newName: "application-outline", - removeIn: "2021.12", - }, - "application-cog": { - newName: "application-cog-outline", - removeIn: "2021.12", - }, - "application-settings": { - newName: "application-settings-outline", - removeIn: "2021.12", - }, bandcamp: { removeIn: "2021.12", }, @@ -77,14 +65,6 @@ const mdiDeprecatedIcons: DeprecatedIcon = { newName: "cross-bolnisi", removeIn: "2021.12", }, - "boom-gate-up": { - newName: "boom-gate-arrow-up", - removeIn: "2021.12", - }, - "boom-gate-up-outline": { - newName: "boom-gate-arrow-up-outline", - removeIn: "2021.12", - }, "boom-gate-down": { newName: "boom-gate-arrow-down", removeIn: "2021.12",