rem useless function

This commit is contained in:
kremsy 2014-01-29 09:08:01 +01:00 committed by Steffen Schröder
parent f301ad8240
commit a7a0aa2ee4

View File

@ -214,31 +214,6 @@ class StatisticManager {
return $playerStats;
}
/**
* Gets The Ranking of an Special Stat
*
* @param string $statName
*/
public function getAllSpecialPlayerStats(Player $player, $serverIndex = -1) {
$playerStats = array();
foreach($this->specialStats as $special){
switch($special){
case self::SPECIAL_STAT_KD_RATIO:
$kills = $this->getStatsRanking(StatisticCollector::STAT_ON_KILL);
$deaths = $this->getStatsRanking(StatisticCollector::STAT_ON_DEATH);
foreach($deaths as $key => $death) {
if ($death == 0 || !isset($kills[$key])) {
continue;
}
$statsArray[$key] = intval($kills[$key]) / intval($death);
}
}
}
return $playerStats;
}
/**
* Inserts a Stat into the database
*