From 9ebc6865da7c0616782e2f001252f270e5506fe8 Mon Sep 17 00:00:00 2001 From: alexradzin Date: Fri, 3 Nov 2023 00:10:11 +0200 Subject: [PATCH] removed commented code --- .../client/account/FireboltAccountClient.java | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/src/main/java/com/firebolt/jdbc/client/account/FireboltAccountClient.java b/src/main/java/com/firebolt/jdbc/client/account/FireboltAccountClient.java index be32ac9bb..3f4aaf768 100644 --- a/src/main/java/com/firebolt/jdbc/client/account/FireboltAccountClient.java +++ b/src/main/java/com/firebolt/jdbc/client/account/FireboltAccountClient.java @@ -62,20 +62,6 @@ public FireboltEngineResponse getEngine(String host, String accountId, String en String accessToken) throws FireboltException, IOException { String uri = createAccountUri(accountId, host, URI_SUFFIX_ACCOUNT_ENGINE_INFO_BY_ENGINE_ID + engineId); return getResource(uri, host, accessToken, FireboltEngineResponse.class, format("The address of the engine with name %s and id %s could not be found", engineName, engineId)); -// try { -// String uri = createAccountUri(accountId, host, URI_SUFFIX_ACCOUNT_ENGINE_INFO_BY_ENGINE_ID + engineId); -// getResource(uri, host, accessToken, FireboltEngineResponse.class, format("The address of the engine with name %s and id %s could not be found", engineName, engineId)); -// return getResource(uri, host, accessToken, FireboltEngineResponse.class); -// } catch (FireboltException exception) { -// if (exception.getType() == ExceptionType.RESOURCE_NOT_FOUND) { -// throw new FireboltException( -// format("The address of the engine with name %s and id %s could not be found", engineName, -// engineId), -// exception, ExceptionType.RESOURCE_NOT_FOUND); -// } else { -// throw exception; -// } -// } } /** @@ -91,17 +77,6 @@ public FireboltDefaultDatabaseEngineResponse getDefaultEngineByDatabaseName(Stri String accessToken) throws FireboltException, IOException { String uri = createAccountUri(accountId, host, URI_SUFFIX_DATABASE_INFO_URL + dbName); return getResource(uri, host, accessToken, FireboltDefaultDatabaseEngineResponse.class, format("The database with the name %s could not be found", dbName)); -// try { -// return getResource(uri, host, accessToken, FireboltDefaultDatabaseEngineResponse.class); -// -// } catch (FireboltException exception) { -// if (exception.getType() == ExceptionType.RESOURCE_NOT_FOUND) { -// throw new FireboltException(format("The database with the name %s could not be found", dbName), -// exception, ExceptionType.RESOURCE_NOT_FOUND); -// } else { -// throw exception; -// } -// } } /** @@ -117,17 +92,6 @@ public FireboltEngineIdResponse getEngineId(String host, String accountId, Strin throws FireboltException, IOException { String uri = createAccountUri(accountId, host, URI_SUFFIX_ENGINE_AND_ACCOUNT_ID_BY_ENGINE_NAME + engineName); return getResource(uri, host, accessToken, FireboltEngineIdResponse.class, format("The engine %s could not be found", engineName)); -// try { -// String uri = createAccountUri(accountId, host, URI_SUFFIX_ENGINE_AND_ACCOUNT_ID_BY_ENGINE_NAME + engineName); -// return getResource(uri, host, accessToken, FireboltEngineIdResponse.class); -// } catch (FireboltException exception) { -// if (exception.getType() == ExceptionType.RESOURCE_NOT_FOUND) { -// throw new FireboltException(format("The engine %s could not be found", engineName), exception, -// ExceptionType.RESOURCE_NOT_FOUND); -// } else { -// throw exception; -// } -// } }