mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Remove unused methods.
This commit is contained in:
@@ -248,32 +248,6 @@ class TransactionJournal extends Model
|
||||
return $this->hasMany(TransactionJournalLink::class, 'destination_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
* @return bool
|
||||
*/
|
||||
public function isDeposit(): bool
|
||||
{
|
||||
if (null !== $this->transaction_type_type) {
|
||||
return TransactionType::DEPOSIT === $this->transaction_type_type;
|
||||
}
|
||||
|
||||
return $this->transactionType->isDeposit();
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
* @return bool
|
||||
*/
|
||||
public function isOpeningBalance(): bool
|
||||
{
|
||||
if (null !== $this->transaction_type_type) {
|
||||
return TransactionType::OPENING_BALANCE === $this->transaction_type_type;
|
||||
}
|
||||
|
||||
return $this->transactionType->isOpeningBalance();
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
* @return bool
|
||||
@@ -287,19 +261,6 @@ class TransactionJournal extends Model
|
||||
return $this->transactionType->isTransfer();
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
* @return bool
|
||||
*/
|
||||
public function isWithdrawal(): bool
|
||||
{
|
||||
if (null !== $this->transaction_type_type) {
|
||||
return TransactionType::WITHDRAWAL === $this->transaction_type_type;
|
||||
}
|
||||
|
||||
return $this->transactionType->isWithdrawal();
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
* Get all of the notes.
|
||||
|
Reference in New Issue
Block a user