From 0909a4b7cce6d953b2b4060b75b7cabcb87e3ace Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 29 Feb 2024 21:57:37 +0100 Subject: [PATCH] Remove dead code, (I didn't fully understand how it landed here in the first place) --- src/bin/download-builtin-keycloak-theme.ts | 28 ---------------------- 1 file changed, 28 deletions(-) diff --git a/src/bin/download-builtin-keycloak-theme.ts b/src/bin/download-builtin-keycloak-theme.ts index 3986132f..29e11688 100644 --- a/src/bin/download-builtin-keycloak-theme.ts +++ b/src/bin/download-builtin-keycloak-theme.ts @@ -181,34 +181,6 @@ export async function downloadBuiltinKeycloakTheme(params: { keycloakVersion: st ); } - { - const totpFtlFilePath = pathJoin(destDirPath, "base", "account", "totp.ftl"); - - fs.writeFileSync( - totpFtlFilePath, - Buffer.from( - fs - .readFileSync(totpFtlFilePath) - .toString("utf8") - .replace( - [ - " <#list totp.policy.supportedApplications as app>", - "
  • ${app}
  • ", - " " - ].join("\n"), - [ - " <#if totp.policy.supportedApplications?has_content>", - " <#list totp.policy.supportedApplications as app>", - "
  • ${app}
  • ", - " ", - " " - ].join("\n") - ), - "utf8" - ) - ); - } - // Note, this is an optimization for reducing the size of the jar, // For this version we know exactly which resources are used. {