From 8727fb3ba8a28da48c71bdd39166b9aeb3c3d986 Mon Sep 17 00:00:00 2001 From: wn_ Date: Mon, 8 Jan 2024 22:46:13 +0000 Subject: Clean up some unused variables. This is essentially https://gitlab.tt-rss.org/wn/tt-rss/-/commit/1ccc0c8c1af04dd9654b585c6d07e3a75d944a0c without the renames and some other things related to Psalm. --- classes/OPML.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'classes/OPML.php') diff --git a/classes/OPML.php b/classes/OPML.php index b9f5f2eab..6b95a89db 100644 --- a/classes/OPML.php +++ b/classes/OPML.php @@ -612,8 +612,6 @@ class OPML extends Handler_Protected { function opml_import(int $owner_uid, string $filename = "") { if (!$owner_uid) return; - $doc = false; - if (!$filename) { if ($_FILES['opml_file']['error'] != 0) { print_error(T_sprintf("Upload failed with error code %d", @@ -644,8 +642,6 @@ class OPML extends Handler_Protected { return false; } - $loaded = false; - $doc = new DOMDocument(); if (version_compare(PHP_VERSION, '8.0.0', '<')) { -- cgit v1.2.3