Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
The 'run_matches' function is not called from anywhere. The rest
of these are only called from within it.
  • Loading branch information
PeterJCLaw committed Mar 9, 2024
1 parent 4a536a9 commit beb29bb
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -507,57 +507,6 @@ <h2 id="arena-unset-warning">

state={}

state.set_pre_comp=function()
{
overlay.scores.hide();
overlay.matchCounter.set_mode("pre");
}

state.set_pre_match=function()
{
overlay.scores.show();
overlay.next.hide();
overlay.matchCounter.set_mode("gap");
overlay.zones.hide();
overlay.progressCounter.show();
overlay.progressCounter.set_match({num:0,type:"knockout",display_name:"Final (#129)"},36);
}

/* Runs the 30s pre match sequence */
state.run_pre_match=function()
{
console.log("30s to match");
state.match_start_minus_30();
setTimeout(function() {
console.log("10s to match")
state.match_start_minus_10();
},1000*(20)); //run 10s script
setTimeout(function() {
console.log("match start")
state.match_start();
},1000*(30)); //run start script
}

state.run_post_match=function()
{
console.log("match end")
state.match_end();
setTimeout(function() {
console.log("match end+10")
state.match_end_plus_10();
},1000*(10)); //run 10s script
}

state.run_matches=function()
{
state.set_pre_match();
overlay.matchCounter.startMatchCounter(120+59);
setInterval(function() {
setTimeout(state.run_pre_match,1000*30);
setTimeout(state.run_post_match,1000*120);
},(1000*2*60))
}

state.match_start_minus_30=function(match)
{

Expand Down

0 comments on commit beb29bb

Please sign in to comment.