Skip to content

Commit

Permalink
refactor: remove unused functionality (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored Jan 21, 2025
1 parent 216354b commit 88e7a90
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 60 deletions.
7 changes: 1 addition & 6 deletions app/Http/Livewire/Concerns/ChartNumberFormatters.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
namespace App\Http\Livewire\Concerns;

use App\Facades\Network;
use App\Services\BigNumber;
use App\Services\NumberFormatter;

trait ChartNumberFormatters
{
private function asMoney(string | int | float | BigNumber $value, bool $isGwei = true): string
private function asMoney(string | int | float $value, bool $isGwei = true): string
{
if ($value instanceof BigNumber) {
$value = (string) $value;
}

if (! $isGwei) {
return NumberFormatter::currency($value, Network::currency());
}
Expand Down
5 changes: 0 additions & 5 deletions app/Services/Transactions/Aggregates/Concerns/HasQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,4 @@ private function dateRangeQuery(Carbon $start, Carbon $end): Builder
$end->getTimestampMs(),
]);
}

private function getScopeByType(string $type): ?string
{
return data_get(Transaction::TYPE_SCOPES, $type);
}
}
49 changes: 0 additions & 49 deletions app/Services/Transactions/Aggregates/Fees/LastFeeAggregate.php

This file was deleted.

0 comments on commit 88e7a90

Please sign in to comment.