|
3 | 3 | */ |
4 | 4 | package com.topcoder.direct.services.view.action.analytics.longcontest; |
5 | 5 |
|
6 | | -import com.topcoder.commons.utils.LoggingWrapperUtility; |
7 | 6 | import com.topcoder.direct.services.view.action.analytics.longcontest.services.MarathonMatchAnalyticsService; |
8 | 7 | import com.topcoder.direct.services.view.action.analytics.longcontest.services.MarathonMatchAnalyticsServiceException; |
9 | 8 | import com.topcoder.direct.services.view.dto.contest.BaseContestCommonDTO; |
|
25 | 24 | import com.topcoder.web.tc.rest.longcontest.resources.MatchResultResource; |
26 | 25 | import com.topcoder.web.tc.rest.longcontest.resources.ProgressResource; |
27 | 26 | import com.topcoder.web.tc.rest.longcontest.resources.SearchResult; |
28 | | -import com.topcoder.util.log.Log; |
29 | | -import com.topcoder.util.log.LogManager; |
30 | 27 | import org.codehaus.jackson.map.ObjectMapper; |
31 | 28 | import org.codehaus.jackson.node.ArrayNode; |
32 | 29 | import org.codehaus.jackson.node.ObjectNode; |
@@ -104,11 +101,6 @@ public final class MarathonMatchHelper { |
104 | 101 | */ |
105 | 102 | public static final String GROUP_TYPE_DAY = "day"; |
106 | 103 |
|
107 | | - /** |
108 | | - * Log instance. |
109 | | - */ |
110 | | - private static final Log logger = LogManager.getLog(MarathonMatchHelper.class.getName()); |
111 | | - |
112 | 104 | /** |
113 | 105 | * Get the marathon match details information of this marathon match contest. |
114 | 106 | * |
@@ -219,16 +211,9 @@ public int compare(CompetitorResource competitorResource, CompetitorResource com |
219 | 211 | */ |
220 | 212 | public static boolean isMarathonMatchActive(Long roundId, |
221 | 213 | MarathonMatchAnalyticsService marathonMatchAnalyticsService) throws MarathonMatchAnalyticsServiceException { |
222 | | - SearchResult<MarathonMatchItemResource> activeContests = null; |
223 | | - |
224 | | - try { |
225 | | - activeContests = |
| 214 | + SearchResult<MarathonMatchItemResource> activeContests = |
226 | 215 | marathonMatchAnalyticsService.getMarathonMatchListings("active", null, null, 50, 1, null, null, |
227 | 216 | MarathonMatchHelper.ACCESS_TOKEN); |
228 | | - } catch (Exception e) { |
229 | | - LoggingWrapperUtility.logException(logger, "isMarathonMatchActive", e); |
230 | | - return false; |
231 | | - } |
232 | 217 | boolean active = false; |
233 | 218 | for(MarathonMatchItemResource contestItem : activeContests.getItems()) { |
234 | 219 | if(contestItem.getRoundId() == roundId) { |
|
0 commit comments