]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Remove an obsoleted function.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 12 Feb 2017 23:09:52 +0000 (18:09 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 12 Feb 2017 23:09:52 +0000 (18:09 -0500)
xonstat/views/submission.py

index 26d35b34400fbea98d7057265c8e69b35d412d06..24894664391792f4b1194219cb77a74a47061404 100644 (file)
@@ -392,20 +392,6 @@ def get_remote_addr(request):
         return request.remote_addr
 
 
-def num_real_players(player_events):
-    """
-    Returns the number of real players (those who played
-    and are on the scoreboard).
-    """
-    real_players = 0
-
-    for events in player_events:
-        if is_real_player(events) and played_in_game(events):
-            real_players += 1
-
-    return real_players
-
-
 def should_do_weapon_stats(game_type_cd):
     """True of the game type should record weapon stats. False otherwise."""
     return game_type_cd not in {'cts'}