Skip to content

Firefly III: a personal finances manager

Removed unused method.

James Coledc599361a4db
diff --git a/app/Repositories/Journal/JournalRepository.php b/app/Repositories/Journal/JournalRepository.php
index 7dcc7996db..9ee336cddf 100644
--- a/app/Repositories/Journal/JournalRepository.php
+++ b/app/Repositories/Journal/JournalRepository.php
@@ -216,40 +216,6 @@ class JournalRepository implements JournalRepositoryInterface
}
- /**
- * Store journal only, uncompleted, with attachments if necessary.
- *
- * @param array $data
- *
- * @return TransactionJournal
- */
- public function storeJournal(array $data): TransactionJournal
- {
- // find transaction type.
- $transactionType = TransactionType::where('type', ucfirst($data['what']))->first();
-
- // store actual journal.
- $journal = new TransactionJournal(
- [
- 'user_id' => $this->user->id,
- 'transaction_type_id' => $transactionType->id,
- 'transaction_currency_id' => $data['amount_currency_id_amount'],
- 'description' => $data['description'],
- 'completed' => 0,
- 'date' => $data['date'],
- ]
- );
-
- $result = $journal->save();
- if ($result) {
- return $journal;
- }
-
- return new TransactionJournal();
-
-
- }
-
/**
* @param TransactionJournal $journal
* @param array $data
diff --git a/app/Repositories/Journal/JournalRepositoryInterface.php b/app/Repositories/Journal/JournalRepositoryInterface.php
index ab17ab22a2..0b62a5729a 100644
--- a/app/Repositories/Journal/JournalRepositoryInterface.php
+++ b/app/Repositories/Journal/JournalRepositoryInterface.php
@@ -75,15 +75,6 @@ interface JournalRepositoryInterface
*/
public function store(array $data): TransactionJournal;
- /**
- * Store journal only, uncompleted, with attachments if necessary.
- *
- * @param array $data
- *
- * @return TransactionJournal
- */
- public function storeJournal(array $data): TransactionJournal;
-
/**
* @param TransactionJournal $journal
* @param array $data