Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 43b45c3

Browse files
committed
Removed unused function
1 parent 7d8985e commit 43b45c3

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/static/js/fb-ctf.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -515,23 +515,6 @@ function setupInputListeners() {
515515
$('li', $announcements).remove();
516516
}
517517

518-
/**
519-
* get the owner of the given country, and return the markup
520-
* for rendering somewhere
521-
*
522-
* @param capturedBy (string)
523-
* - the capturing team
524-
*/
525-
function getCapturedByMarkup(capturedBy) {
526-
if (capturedBy === undefined) {
527-
return "Uncaptured";
528-
}
529-
530-
var capturedClass = (capturedBy === FB_CTF.data.CONF.currentTeam) ? 'your-name' : 'opponent-name';
531-
var span = $('<span/>').attr('class', capturedClass).text(capturedBy);
532-
return span;
533-
}
534-
535518
/**
536519
* automatically scroll through the content on the sidebar
537520
* modules. This happens in the "view only" mode
@@ -732,9 +715,6 @@ function setupInputListeners() {
732715
* @param country (string)
733716
* - the country being captured
734717
*
735-
* @param capturedBy (string)
736-
* - the user or team who has captured this country
737-
*
738718
* @param capturingTeam (string)
739719
* - an optional parameter for the team that is attempting
740720
* to capture the given country
@@ -792,8 +772,6 @@ function setupInputListeners() {
792772
* @param country (string)
793773
* - the country that is being captured
794774
*
795-
* @param capturedBy (string)
796-
* - the user or team who has captured this country
797775
*/
798776
function launchCaptureModal(country) {
799777
var data = FB_CTF.data.COUNTRIES[country];

0 commit comments

Comments
 (0)