Skip to content

Commit

Permalink
Removed classroom related code that is never executed.
Browse files Browse the repository at this point in the history
  • Loading branch information
chethana-sastry committed Nov 8, 2018
1 parent 296e405 commit 71e3895
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/views/play/CampaignView.coffee
Expand Up @@ -658,10 +658,6 @@ module.exports = class CampaignView extends RootView
level.unlocksItem = _.find(level.rewards, 'item')?.item
level.unlocksPet = utils.petThangIDs.indexOf(level.unlocksItem) isnt -1

if @classroom?
level.unlocksItem = false
level.unlocksPet = false

if window.serverConfig.picoCTF
if problem = _.find(@picoCTFProblems or [], pid: level.picoCTFProblem)
level.locked = false if problem.unlocked or level.slug is 'digital-graffiti'
Expand Down

0 comments on commit 71e3895

Please sign in to comment.