From 8410a9cba884be8a332dc4c0a07ed7b4f0a609d3 Mon Sep 17 00:00:00 2001 From: wenjiefan Date: Thu, 5 Dec 2024 10:57:58 +0100 Subject: [PATCH] remove unsued function --- .../AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/System Application/App/AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al b/src/System Application/App/AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al index 1b218bc22e..58800c420b 100644 --- a/src/System Application/App/AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al +++ b/src/System Application/App/AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al @@ -257,18 +257,6 @@ codeunit 7774 "Copilot Capability Impl" IsAdmin := AzureADGraphUser.IsUserDelegatedAdmin() or AzureADPlan.IsPlanAssignedToUser(PlanIds.GetGlobalAdminPlanId()) or AzureADPlan.IsPlanAssignedToUser(PlanIds.GetBCAdminPlanId()) or AzureADPlan.IsPlanAssignedToUser(PlanIds.GetD365AdminPlanId()) or AzureADGraphUser.IsUserDelegatedHelpdesk() or UserPermissions.IsSuper(UserSecurityId()); end; -#if not CLEAN26 - [TryFunction] - [Obsolete('Use the procedure CheckGeoAndEUDB', '26.0')] - procedure CheckGeo(var WithinGeo: Boolean; var WithinEuropeGeo: Boolean) - var - ALCopilotFunctions: DotNet ALCopilotFunctions; - begin - WithinGeo := ALCopilotFunctions.IsWithinGeo(); - WithinEuropeGeo := ALCopilotFunctions.IsEuropeGeo(); - end; -#endif - [TryFunction] procedure CheckGeoAndEUDB(var WithinGeo: Boolean; var WithinEUDB: Boolean) var