Code cleanup

Removed unused reference to BOINC user.inc, as CPID is in the Drupal user object

(DBOINCP-84)
This commit is contained in:
Tristan Olive 2013-10-25 10:16:16 -04:00
parent 9c32cc1f45
commit 3b20262a16
1 changed files with 0 additions and 3 deletions

View File

@ -1086,9 +1086,6 @@ function boincuser_get_projects($account = null) {
$account = user_load($user->uid);
}
// Tie into the BOINC code and use CPID to get cross project stats
require_boinc('user');
$boinc_user = BoincUser::lookup_id($account->boincuser_id);
$account_stats = boincuser_get_stats_user_data($account->boincuser_cpid);
return ($account_stats AND isset($account_stats->project)) ? $account_stats->project : null;