diff --git a/src/System Application/App/MCP/app.json b/src/System Application/App/MCP/app.json index 39d17b2cb0..a69cbd7af8 100644 --- a/src/System Application/App/MCP/app.json +++ b/src/System Application/App/MCP/app.json @@ -29,12 +29,6 @@ "publisher": "Microsoft", "version": "29.0.0.0" }, - { - "id": "ae59aed1-040c-453c-9585-fe9da2f8211e", - "name": "Feature Key", - "publisher": "Microsoft", - "version": "29.0.0.0" - }, { "id": "1b2efb4b-8c44-4d74-a56f-60646645bb21", "name": "URI", diff --git a/src/System Application/App/MCP/src/Configuration/Codeunits/MCPConfigImplementation.Codeunit.al b/src/System Application/App/MCP/src/Configuration/Codeunits/MCPConfigImplementation.Codeunit.al index 43d2e57c77..d520b22569 100644 --- a/src/System Application/App/MCP/src/Configuration/Codeunits/MCPConfigImplementation.Codeunit.al +++ b/src/System Application/App/MCP/src/Configuration/Codeunits/MCPConfigImplementation.Codeunit.al @@ -7,9 +7,6 @@ namespace System.MCP; using System.Azure.Identity; using System.Environment; -#if not CLEAN28 -using System.Environment.Configuration; -#endif using System.Feedback; using System.Reflection; using System.Utilities; @@ -1196,14 +1193,4 @@ codeunit 8351 "MCP Config Implementation" Session.LogAuditMessage(StrSubstNo(MCPConfigurationAuditDeletedLbl, MCPConfiguration.Name, UserSecurityId(), CompanyName()), SecurityOperationResult::Success, AuditCategory::ApplicationManagement, 3, 0); end; #endregion - -#if not CLEAN28 - internal procedure IsFeatureEnabled(): Boolean - var - FeatureManagementFacade: Codeunit "Feature Management Facade"; - EnableMcpAccessTok: Label 'EnableMcpAccess', Locked = true; - begin - exit(FeatureManagementFacade.IsEnabled(EnableMcpAccessTok)); - end; -#endif } diff --git a/src/System Application/App/MCP/src/Configuration/Pages/MCPConfigList.Page.al b/src/System Application/App/MCP/src/Configuration/Pages/MCPConfigList.Page.al index 79a9fc431a..73e7ccbcd5 100644 --- a/src/System Application/App/MCP/src/Configuration/Pages/MCPConfigList.Page.al +++ b/src/System Application/App/MCP/src/Configuration/Pages/MCPConfigList.Page.al @@ -5,10 +5,6 @@ namespace System.MCP; -#if not CLEAN28 -using System.Environment.Configuration; -#endif - page 8350 "MCP Config List" { PageType = List; @@ -205,19 +201,7 @@ page 8350 "MCP Config List" } trigger OnOpenPage() -#if not CLEAN28 - var - FeatureNotEnabledErrorInfo: ErrorInfo; -#endif begin -#if not CLEAN28 - if not MCPConfigImplementation.IsFeatureEnabled() then begin - FeatureNotEnabledErrorInfo.Message := FeatureNotEnabledErr; - FeatureNotEnabledErrorInfo.AddNavigationAction(GoToFeatureManagementLbl); - FeatureNotEnabledErrorInfo.PageNo := Page::"Feature Management"; - Error(FeatureNotEnabledErrorInfo); - end; -#endif HadActiveConfigsOnOpen := not MCPConfigImplementation.HasNoActiveConfigurations(); end; @@ -233,9 +217,5 @@ page 8350 "MCP Config List" var MCPConfigImplementation: Codeunit "MCP Config Implementation"; HadActiveConfigsOnOpen: Boolean; -#if not CLEAN28 - FeatureNotEnabledErr: Label 'MCP server feature is not enabled. Please contact your system administrator to enable the feature.'; - GoToFeatureManagementLbl: Label 'Go to Feature Management'; -#endif } \ No newline at end of file