From 056878a27d28ba22d4d5c3228cc0d64d7f54d06b Mon Sep 17 00:00:00 2001 From: Jakob Buchgraber Date: Wed, 20 Dec 2017 11:42:18 +0100 Subject: remote: delete dead code Change-Id: Iacbba3eced0abc0dcfd7311a0f07da48cbaba6e4 PiperOrigin-RevId: 179664071 --- .../build/lib/remote/blobstore/RestBlobStore.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java b/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java index 87abdda082..76d1773623 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java +++ b/src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java @@ -43,10 +43,6 @@ import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; *

GET /{ac,cas}/1234 HTTP/1.1 GET method fetches a blob with the specified key. In this example * the key is 1234. A status code of 200 should be followed by the content of blob. Status code of * 404 or 204 means the key cannot be found. - * - *

HEAD /{ac,cas}/1234 HTTP/1.1 HEAD method checks to see if the specified key exists in the blob - * store. A status code of 200 indicates the key is found in the blob store. A status code of 404 - * indicates the key is not found in the blob store. */ public final class RestBlobStore implements SimpleBlobStore { @@ -98,19 +94,7 @@ public final class RestBlobStore implements SimpleBlobStore { @Override public boolean containsKey(String key) throws IOException { - HttpResponse response = null; - try { - response = - requestFactory - .buildHeadRequest(new GenericUrl(baseUrl + "/" + CAS_PREFIX + "/" + key)) - .setThrowExceptionOnExecuteError(false) - .execute(); - return HttpStatus.SC_OK == response.getStatusCode(); - } finally { - if (response != null) { - response.disconnect(); - } - } + throw new UnsupportedOperationException("HTTP Caching does not use this method."); } @Override -- cgit v1.2.3