From 7ca77203c0622697123e2fdb6f377d87e3de901b Mon Sep 17 00:00:00 2001 From: Lukas Eipert Date: Thu, 4 Jul 2019 13:36:49 +0200 Subject: Replace runtime isEE check with compile time one This has the benefit that CE bundles will remove dead code in CE only builds. We have a follow-up issue to get rid of this completely: https://gitlab.com/gitlab-org/gitlab-ce/issues/64173 --- app/assets/javascripts/lib/utils/common_utils.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'app/assets/javascripts/lib/utils/common_utils.js') diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index cc5e12aa467..5e90893b684 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -726,14 +726,6 @@ export const NavigationType = { TYPE_RESERVED: 255, }; -/** - * Returns the value of `gon.ee` - * Used to check if it's the EE codebase or the CE one. - * - * @returns Boolean - */ -export const isEE = () => window.gon && window.gon.ee; - /** * Checks if the given Label has a special syntax `::` in * it's title. -- cgit v1.2.1