summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorwn_ <[email protected]>2023-03-05 14:10:38 +0000
committerwn_ <[email protected]>2023-03-05 14:20:19 +0000
commitdabb85c7dd82d2e97e400e0339d312030d4a1b4b (patch)
tree9235156aa9750896adc31374d3caffc2a79c6b38 /classes
parent7ed4fa4c1dbdd9df552cf6dd28907c6769911a0e (diff)
Address PHPStan warning about unused private method 'Prefs::_delete()'.
Diffstat (limited to 'classes')
-rw-r--r--classes/prefs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/prefs.php b/classes/prefs.php
index 378fea293..92f703b3f 100644
--- a/classes/prefs.php
+++ b/classes/prefs.php
@@ -325,13 +325,13 @@ class Prefs {
return self::get_instance()->_set($pref_name, $value, $owner_uid, $profile_id);
}
- private function _delete(string $pref_name, int $owner_uid, ?int $profile_id): bool {
+ /* private function _delete(string $pref_name, int $owner_uid, ?int $profile_id): bool {
$sth = $this->pdo->prepare("DELETE FROM ttrss_user_prefs2
WHERE pref_name = :name AND owner_uid = :uid AND
(profile = :profile OR (:profile IS NULL AND profile IS NULL))");
return $sth->execute(["uid" => $owner_uid, "profile" => $profile_id, "name" => $pref_name ]);
- }
+ } */
/**
* @param bool|int|string $value