From 7e256253b8f0475e93993b0ce1101d3d2067f273 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Wed, 14 Jan 2026 15:14:20 +0300 Subject: [PATCH] remove unused function --- .../settings/version-history/HistorySrv.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/public/app/features/dashboard-scene/settings/version-history/HistorySrv.ts b/public/app/features/dashboard-scene/settings/version-history/HistorySrv.ts index 2cacdf9813d..8b9349b73cd 100644 --- a/public/app/features/dashboard-scene/settings/version-history/HistorySrv.ts +++ b/public/app/features/dashboard-scene/settings/version-history/HistorySrv.ts @@ -36,18 +36,6 @@ export class HistorySrv { return getBackendSrv().get(`api/dashboards/uid/${dashboardUID}/versions/${version}`); } - - // restore should not be needed -- each result has the full dashboard data, - // so just update the dashboard with the data from the version you want to restore - restoreDashboard(dashboardUID: string, version: number) { - if (typeof dashboardUID !== 'string') { - return Promise.resolve({}); - } - - const url = `api/dashboards/uid/${dashboardUID}/restore`; - - return getBackendSrv().post(url, { version }); - } } const historySrv = new HistorySrv();