Skip to content

Commit

Permalink
SB-1305 feat: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AMIT KUMAR committed Jan 29, 2018
1 parent 763519b commit 0256fd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion service/app/controllers/BaseController.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import org.sunbird.common.models.util.ProjectUtil;
import org.sunbird.common.request.ExecutionContext;
import org.sunbird.common.responsecode.ResponseCode;
import org.sunbird.learner.util.TelemetryUtil;
import org.sunbird.telemetry.util.lmaxdisruptor.LMAXWriter;
import play.libs.F.Function;
import play.libs.F.Promise;
Expand Down
13 changes: 0 additions & 13 deletions service/app/util/Global.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.lang.reflect.Method;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.UUID;

Expand Down Expand Up @@ -89,18 +88,6 @@ public Promise<Result> call(Http.Context ctx) throws java.lang.Throwable {
}
}

private void initializeRequestChannel(Context ctx) {

String channel = ctx.request().getHeader(JsonKey.CHANNEL);
if(ProjectUtil.isStringNullOREmpty(channel)){
// set default channel to context flash
ctx.flash().put(JsonKey.CHANNEL, JsonKey.DEFAULT_ROOT_ORG_ID);
}else{
ctx.flash().put(JsonKey.CHANNEL, channel);
}

}


/**
*
Expand Down

0 comments on commit 0256fd1

Please sign in to comment.