Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 1487de2

Browse files
author
ykohata
committed
Revert "I-145106"
This reverts commit c838f1f.
1 parent c838f1f commit 1487de2

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/java/main/com/topcoder/direct/services/view/action/analytics/longcontest/MarathonMatchHelper.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
package com.topcoder.direct.services.view.action.analytics.longcontest;
55

6-
import com.topcoder.commons.utils.LoggingWrapperUtility;
76
import com.topcoder.direct.services.view.action.analytics.longcontest.services.MarathonMatchAnalyticsService;
87
import com.topcoder.direct.services.view.action.analytics.longcontest.services.MarathonMatchAnalyticsServiceException;
98
import com.topcoder.direct.services.view.dto.contest.BaseContestCommonDTO;
@@ -25,8 +24,6 @@
2524
import com.topcoder.web.tc.rest.longcontest.resources.MatchResultResource;
2625
import com.topcoder.web.tc.rest.longcontest.resources.ProgressResource;
2726
import com.topcoder.web.tc.rest.longcontest.resources.SearchResult;
28-
import com.topcoder.util.log.Log;
29-
import com.topcoder.util.log.LogManager;
3027
import org.codehaus.jackson.map.ObjectMapper;
3128
import org.codehaus.jackson.node.ArrayNode;
3229
import org.codehaus.jackson.node.ObjectNode;
@@ -104,11 +101,6 @@ public final class MarathonMatchHelper {
104101
*/
105102
public static final String GROUP_TYPE_DAY = "day";
106103

107-
/**
108-
* Log instance.
109-
*/
110-
private static final Log logger = LogManager.getLog(MarathonMatchHelper.class.getName());
111-
112104
/**
113105
* Get the marathon match details information of this marathon match contest.
114106
*
@@ -219,16 +211,9 @@ public int compare(CompetitorResource competitorResource, CompetitorResource com
219211
*/
220212
public static boolean isMarathonMatchActive(Long roundId,
221213
MarathonMatchAnalyticsService marathonMatchAnalyticsService) throws MarathonMatchAnalyticsServiceException {
222-
SearchResult<MarathonMatchItemResource> activeContests = null;
223-
224-
try {
225-
activeContests =
214+
SearchResult<MarathonMatchItemResource> activeContests =
226215
marathonMatchAnalyticsService.getMarathonMatchListings("active", null, null, 50, 1, null, null,
227216
MarathonMatchHelper.ACCESS_TOKEN);
228-
} catch (Exception e) {
229-
LoggingWrapperUtility.logException(logger, "isMarathonMatchActive", e);
230-
return false;
231-
}
232217
boolean active = false;
233218
for(MarathonMatchItemResource contestItem : activeContests.getItems()) {
234219
if(contestItem.getRoundId() == roundId) {

0 commit comments

Comments
 (0)