From 0d6247080a2033d9e6ce38a655b974a8f57396dd Mon Sep 17 00:00:00 2001 From: Glauber Silva Date: Wed, 13 Dec 2023 18:29:12 -0300 Subject: [PATCH] refactor: remove updateFundId method --- src/Revenue/Repositories/Revenue.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Revenue/Repositories/Revenue.php b/src/Revenue/Repositories/Revenue.php index 2326a8c384..09ea3c65db 100644 --- a/src/Revenue/Repositories/Revenue.php +++ b/src/Revenue/Repositories/Revenue.php @@ -65,24 +65,6 @@ public function deleteByDonationId($revenueId) ); } - /** - * @unreleased - * - * @return false|int - */ - public function updateFundId(int $fundId, Donation $donation) - { - global $wpdb; - - return DB::update( - $wpdb->give_revenue, - ['fund_id' => $fundId], - ['donation_id' => $donation->id], - ['%d'], - ['%d'] - ); - } - /** * @since 2.22.1 *