From: Ant Zucaro Date: Sun, 12 Feb 2017 23:09:52 +0000 (-0500) Subject: Remove an obsoleted function. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=49bdd4fc762528cc86139c56b535398302dc097f;p=xonotic%2Fxonstat.git Remove an obsoleted function. --- diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index 26d35b3..2489466 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -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'}