From 06cfc3d29a1306e49ef8aa8eb729ff44bfd3a714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=97=D0=BB=20=D0=93=D1=80=D0=B8?= =?UTF-8?q?=D0=B3=D0=BE=D1=80=27=D1=94=D0=B2?= Date: Sat, 14 Jun 2025 04:55:15 +0300 Subject: [PATCH] Remove unused G_HAVE_ASSERT define Not used anywhere except exposing BUILD_OPTIONS for mods. --- gulp/webpack.config.js | 1 - gulp/webpack.production.config.js | 1 - src/js/core/globals.js | 1 - src/js/globals.d.ts | 1 - 4 files changed, 4 deletions(-) diff --git a/gulp/webpack.config.js b/gulp/webpack.config.js index 71b06a64..9d0bf5d0 100644 --- a/gulp/webpack.config.js +++ b/gulp/webpack.config.js @@ -17,7 +17,6 @@ const globalDefs = { G_ALL_UI_IMAGES: JSON.stringify(getAllResourceImages()), G_IS_RELEASE: "false", - G_HAVE_ASSERT: "true", }; /** @type {import("webpack").RuleSetRule[]} */ diff --git a/gulp/webpack.production.config.js b/gulp/webpack.production.config.js index 0cba84a3..bcce1ccf 100644 --- a/gulp/webpack.production.config.js +++ b/gulp/webpack.production.config.js @@ -18,7 +18,6 @@ const globalDefs = { "G_ALL_UI_IMAGES": JSON.stringify(getAllResourceImages()), "G_IS_RELEASE": "true", - "G_HAVE_ASSERT": "false", }; /** @type {import("webpack").RuleSetRule[]} */ diff --git a/src/js/core/globals.js b/src/js/core/globals.js index 41ffdf48..4d901996 100644 --- a/src/js/core/globals.js +++ b/src/js/core/globals.js @@ -17,7 +17,6 @@ export function setGlobalApp(app) { } export const BUILD_OPTIONS = { - HAVE_ASSERT: G_HAVE_ASSERT, APP_ENVIRONMENT: G_APP_ENVIRONMENT, IS_DEV: G_IS_DEV, IS_RELEASE: G_IS_RELEASE, diff --git a/src/js/globals.d.ts b/src/js/globals.d.ts index 7bb2887f..6a4b1292 100644 --- a/src/js/globals.d.ts +++ b/src/js/globals.d.ts @@ -12,7 +12,6 @@ declare function assertAlways( declare const abstract: void; declare const G_APP_ENVIRONMENT: string; -declare const G_HAVE_ASSERT: boolean; declare const G_BUILD_TIME: number; declare const G_BUILD_COMMIT_HASH: string;