You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2018/12/07 12:27:36 UTC
[ignite-teamcity-bot] 02/02: Unused code removal
This is an automated email from the ASF dual-hosted git repository.
dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git
commit 96785a232325f7e8c0f7702e2008f0d220b0097b
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Fri Dec 7 15:27:31 2018 +0300
Unused code removal
---
.../apache/ignite/ci/IgnitePersistentTeamcity.java | 26 ----------------------
1 file changed, 26 deletions(-)
diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/IgnitePersistentTeamcity.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/IgnitePersistentTeamcity.java
index 88f486c..41be87c 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/IgnitePersistentTeamcity.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/IgnitePersistentTeamcity.java
@@ -167,32 +167,6 @@ public class IgnitePersistentTeamcity implements IAnalyticsEnabledTeamcity, ITea
return serverId;
}
- private <K, V> V loadIfAbsentV2(String cacheName, K key, Function<K, V> loadFunction) {
- return loadIfAbsent(getOrCreateCacheV2(ignCacheNme(cacheName)), key, loadFunction, (V v) -> true);
- }
-
- private <K, V> V loadIfAbsent(IgniteCache<K, V> cache, K key, Function<K, V> loadFunction) {
- return loadIfAbsent(cache, key, loadFunction, null);
- }
-
- private <K, V> V loadIfAbsent(IgniteCache<K, V> cache, K key, Function<K, V> loadFunction,
- Predicate<V> saveValueFilter) {
- @Nullable final V persistedBuilds = cache.get(key);
-
- if (persistedBuilds != null) {
- int fields = ObjectInterner.internFields(persistedBuilds);
-
- return persistedBuilds;
- }
-
- final V loaded = loadFunction.apply(key);
-
- if (saveValueFilter == null || saveValueFilter.test(loaded))
- cache.put(key, loaded);
-
- return loaded;
- }
-
@Deprecated
private <K, V> CompletableFuture<V> loadAsyncIfAbsentOrExpired(ConcurrentMap<K, Expirable<V>> cache,
K key,