diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-01-25 18:12:02 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2018-01-25 18:12:02 +0100 |
commit | f6ac8c6cdd3d1b8cffbf03bc0e4c16fc445135f0 (patch) | |
tree | 0818082ef4f33f3a3dd824cc9e1d4b83df7c99ad /config-model-api | |
parent | 77abc544f5a6e7e9a7fdaa18ba352cbe3b8eae56 (diff) |
Move it back where it came from.
Diffstat (limited to 'config-model-api')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/application/api/FileRegistry.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/application/api/FileRegistry.java b/config-model-api/src/main/java/com/yahoo/config/application/api/FileRegistry.java index 1f1e73c8eed..15ae4294762 100644 --- a/config-model-api/src/main/java/com/yahoo/config/application/api/FileRegistry.java +++ b/config-model-api/src/main/java/com/yahoo/config/application/api/FileRegistry.java @@ -1,13 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.config.application.api; -import java.nio.ByteBuffer; import java.util.List; -import java.util.Set; import com.yahoo.config.FileReference; -import com.yahoo.text.Utf8; -import net.jpountz.xxhash.XXHashFactory; + /** * @author tonytv @@ -34,16 +31,4 @@ public interface FileRegistry { } } - static String uriToRelativeFile(String uri) { - String relative = "uri/" + String.valueOf(XXHashFactory.nativeInstance().hash64().hash(ByteBuffer.wrap(Utf8.toBytes(uri)), 0)); - if (uri.endsWith(".json")) { - relative += ".json"; - } else if (uri.endsWith(".json.lz4")) { - relative += ".json.lz4"; - } else if (uri.endsWith(".lz4")) { - relative += ".lz4"; - } - return relative; - } - } |