Parent pointer for filesystem objects isn't actually used
--- a/include/git/FilesystemObject.class.php
+++ b/include/git/FilesystemObject.class.php
@@ -196,32 +196,6 @@
}
/**
- * GetParent
- *
- * Gets the parent
- *
- * @access public
- * @return mixed parent object
- */
- public function GetParent()
- {
- return $this->parent;
- }
-
- /**
- * SetParent
- *
- * Sets the parent
- *
- * @access public
- * @param mixed $parent parent object
- */
- public function SetParent($parent)
- {
- $this->parent = $parent;
- }
-
- /**
* GetCommit
*
* Gets the commit this object belongs to
--- a/include/git/Tree.class.php
+++ b/include/git/Tree.class.php
@@ -104,7 +104,6 @@
if (!empty($this->path))
$path = $this->path . '/' . $path;
$t->SetPath($path);
- $t->SetParent($this);
if ($this->commit)
$t->SetCommit($this->commit);
$this->contents[] = $t;
@@ -119,7 +118,6 @@
$size = trim($regs[4]);
if (!empty($size))
$b->SetSize($regs[4]);
- $b->SetParent($this);
if ($this->commit)
$b->SetCommit($this->commit);
$this->contents[] = $b;