Removed some dead code.

This commit is contained in:
James Cole
2015-06-29 07:16:43 +02:00
parent cfa67d6c0f
commit b13acef272
2 changed files with 0 additions and 11 deletions

View File

@@ -60,10 +60,6 @@ class ChartJsReportChartGenerator implements ReportChartGenerator
public function yearInOutSummarized($income, $expense, $count) public function yearInOutSummarized($income, $expense, $count)
{ {
// language:
$language = Preferences::get('language', 'en')->data;
$format = Config::get('firefly.month.' . $language);
$data = [ $data = [
'count' => 2, 'count' => 2,
'labels' => [], 'labels' => [],

View File

@@ -67,13 +67,6 @@ class ChartJsReportChartGeneratorTest extends TestCase
*/ */
public function testYearInOutSummarized() public function testYearInOutSummarized()
{ {
$preference = FactoryMuffin::create('FireflyIII\Models\Preference');
$preference->data = 'en';
$preference->save();
// mock language preference:
Preferences::shouldReceive('get')->withArgs(['language', 'en'])->andReturn($preference);
// make set: // make set:
$income = 2400; $income = 2400;
$expense = 1200; $expense = 1200;