From 61ee68c3c63d18cf6d201f07dcc574031252aa82 Mon Sep 17 00:00:00 2001 From: Ola Aunrønning Date: Thu, 16 Sep 2021 15:39:20 +0200 Subject: Ignore dashboardId parameter. Remove unused functions --- .../api/integration/horizon/HorizonClient.java | 10 +--------- .../api/integration/horizon/MockHorizonClient.java | 21 +-------------------- 2 files changed, 2 insertions(+), 29 deletions(-) (limited to 'controller-api') diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/horizon/HorizonClient.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/horizon/HorizonClient.java index 554d3e5b7fa..6933c9b18f5 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/horizon/HorizonClient.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/horizon/HorizonClient.java @@ -10,16 +10,8 @@ public interface HorizonClient { HorizonResponse getUser(); - HorizonResponse getDashboard(String dashboardId); - - HorizonResponse getFavorite(String userId); + HorizonResponse getDashboard(); HorizonResponse getTopFolders(); - HorizonResponse getRecent(String userId); - - HorizonResponse getClipboard(String dashboardId); - - HorizonResponse getMetaData(byte[] query); - } diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/horizon/MockHorizonClient.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/horizon/MockHorizonClient.java index 13a8c2ec079..f98082ea6aa 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/horizon/MockHorizonClient.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/horizon/MockHorizonClient.java @@ -17,12 +17,7 @@ public class MockHorizonClient implements HorizonClient { } @Override - public HorizonResponse getDashboard(String dashboardId) { - return HorizonResponse.empty(); - } - - @Override - public HorizonResponse getFavorite(String userId) { + public HorizonResponse getDashboard() { return HorizonResponse.empty(); } @@ -31,18 +26,4 @@ public class MockHorizonClient implements HorizonClient { return HorizonResponse.empty(); } - @Override - public HorizonResponse getRecent(String userId) { - return HorizonResponse.empty(); - } - - @Override - public HorizonResponse getClipboard(String dashboardId) { - return HorizonResponse.empty(); - } - - @Override - public HorizonResponse getMetaData(byte[] query) { - return HorizonResponse.empty(); - } } -- cgit v1.2.3