From f96db9ce9940090e66b353e7c819511924445af4 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Tue, 27 Feb 2018 08:58:01 -0500 Subject: [PATCH] Delete zombie file --- lib/XML/XMLFeedPrimitives.php | 77 ----------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 lib/XML/XMLFeedPrimitives.php diff --git a/lib/XML/XMLFeedPrimitives.php b/lib/XML/XMLFeedPrimitives.php deleted file mode 100644 index ba04ddc..0000000 --- a/lib/XML/XMLFeedPrimitives.php +++ /dev/null @@ -1,77 +0,0 @@ -fetchTextAtom("atom:subtitle"); - } - - /** Primitive to fetch an RSS feed summary */ - protected function getSummaryRss2() { - return $this->fetchText("description"); - } - - /** Primitive to fetch an RDF feed summary */ - protected function getSummaryRss1() { - return $this->fetchText("rss1:description|rss0:description"); - } - - /** Primitive to fetch a Dublin Core feed summary */ - protected function getSummaryDC() { - return $this->fetchText("dc:description"); - } - - /** Primitive to fetch a podcast summary */ - protected function getSummaryPod() { - return $this->fetchText("apple:summary|gplay:description") ?? $this->fetchText("apple:subtitle"); - } - - /** Primitive to fetch a collection of people associated with an RSS feed */ - protected function getPeopleRss2() { - $nodes = $this->fetchElements("managingEditor|webMaster|author"); - if (!$nodes->length) { - return null; - } - $out = new PersonCollection; - $roles = [ - 'managingEditor' => "editor", - 'webMaster' => "webmaster", - 'author' => "author", - ]; - foreach ($nodes as $node) { - $text = $this->trimText($node->textContent); - if (strlen($text)) { - $p = $this->parsePersonText($text); - $p->role = $roles[$node->localName]; - $out[] = $p; - } - } - return $out; - } - - /** Primitive to fetch a collection of people associated with an Atom feed */ - protected function getPeopleAtom() { - $nodes = $this->fetchElements("atom:author|atom:contributor"); - if (!$nodes->length) { - return null; - } - $out = new PersonCollection; - foreach ($nodes as $node) { - $p = $this->parsePersonAtom($node); - if ($p) { - $out[] = $p; - } - } - return $out; - } -}