diff options
author | 2017-12-20 11:42:18 +0100 | |
---|---|---|
committer | 2017-12-20 13:42:35 +0100 | |
commit | 056878a27d28ba22d4d5c3228cc0d64d7f54d06b (patch) | |
tree | becb7df65a9e8cc1cafb94931524f5b1c8e60f1c /src/main/java | |
parent | 52b62164af031c50b7a0584303caad67af5e1d4d (diff) |
remote: delete dead code
Change-Id: Iacbba3eced0abc0dcfd7311a0f07da48cbaba6e4
PiperOrigin-RevId: 179664071
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/remote/blobstore/RestBlobStore.java | 18 |
1 files changed, 1 insertions, 17 deletions
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; * <p>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. - * - * <p>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 |