summaryrefslogtreecommitdiff
path: root/app/Functions/FunctionsPrintFacts.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-10-13 10:11:04 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-10-13 10:27:07 +0100
commitd85de00fd5bcdcfbee029fa7c1da0240428565da (patch)
tree52fc3ff952e6ed720e32cf34e6c19e19f3d7ef27 /app/Functions/FunctionsPrintFacts.php
parenta5068f91b4349f8a5e47576f9dd749d221f61a10 (diff)
downloadwebtrees-d85de00fd5bcdcfbee029fa7c1da0240428565da.tar.gz
webtrees-d85de00fd5bcdcfbee029fa7c1da0240428565da.tar.bz2
webtrees-d85de00fd5bcdcfbee029fa7c1da0240428565da.zip
Remove unused local variables
Diffstat (limited to 'app/Functions/FunctionsPrintFacts.php')
-rw-r--r--app/Functions/FunctionsPrintFacts.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Functions/FunctionsPrintFacts.php b/app/Functions/FunctionsPrintFacts.php
index ddfcd3329c..9220daa6f1 100644
--- a/app/Functions/FunctionsPrintFacts.php
+++ b/app/Functions/FunctionsPrintFacts.php
@@ -549,7 +549,6 @@ class FunctionsPrintFacts
public static function printMainSources(Fact $fact, int $level): void
{
$factrec = $fact->gedcom();
- $parent = $fact->record();
$tree = $fact->record()->tree();
$nlevel = $level + 1;
@@ -741,8 +740,7 @@ class FunctionsPrintFacts
public static function printMainNotes(Fact $fact, int $level): void
{
$factrec = $fact->gedcom();
- $parent = $fact->record();
- $tree = $parent->tree();
+ $tree = $fact->record()->tree();
if ($fact->isPendingAddition()) {
$styleadd = 'wt-new ';