Skip to content

A platform for community discussion. Free, open, simple.

DEV: Drop deprecated `discourse.add-header-panel` code (#38863)

David Taylor1d4c0eafc653
diff --git a/frontend/discourse/app/deprecation-workflow.js b/frontend/discourse/app/deprecation-workflow.js
index 6fbaba5a7bf..60e35f9b765 100644
--- a/frontend/discourse/app/deprecation-workflow.js
+++ b/frontend/discourse/app/deprecation-workflow.js
@@ -332,7 +332,6 @@ const workflows = [
// To keep warnings meaningful and prevent overflowing users with them,
// we should only add values here after fixing core and official plugins
{ handler: "notify-admin", matchId: "discourse.add-flag-property" },
- { handler: "notify-admin", matchId: "discourse.add-header-panel" },
{ handler: "notify-admin", matchId: "discourse.breadcrumbs.childCategories" },
{ handler: "notify-admin", matchId: "discourse.breadcrumbs.firstCategory" },
{
diff --git a/frontend/discourse/app/lib/plugin-api.gjs b/frontend/discourse/app/lib/plugin-api.gjs
index fa0fc6a34f9..cc418b46df6 100644
--- a/frontend/discourse/app/lib/plugin-api.gjs
+++ b/frontend/discourse/app/lib/plugin-api.gjs
@@ -1075,17 +1075,6 @@ class _PluginApi {
);
}
- /**
- * @deprecated Use `api.headerIcons` instead.
- */
- addHeaderPanel() {
- // eslint-disable-next-line no-console
- console.error(
- consolePrefix(),
- `api.addHeaderPanel: This API was decommissioned. Use api.headerIcons instead.`
- );
- }
-
/**
* Adds a pluralization to the store
*