Skip to content
Snippets Groups Projects
Unverified Commit e37d011c authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

metarefresh: remove unused code

parent 1faa4179
No related branches found
No related tags found
No related merge requests found
......@@ -178,9 +178,6 @@ class sspmod_metarefresh_MetaLoader {
* Create HTTP context, with any available caches taken into account
*/
private function createContext($source) {
$context = NULL;
$config = SimpleSAML_Configuration::getInstance();
$name = $config->getString('technicalcontact_name', NULL);
$mail = $config->getString('technicalcontact_email', NULL);
......@@ -251,7 +248,6 @@ class sspmod_metarefresh_MetaLoader {
* Parse XML metadata and return entities
*/
private function loadXML($data, $source) {
$entities = array();
try {
$doc = \SAML2\DOMDocumentFactory::fromString($data);
} catch (Exception $e) {
......@@ -260,8 +256,7 @@ class sspmod_metarefresh_MetaLoader {
if ($doc->documentElement === NULL) {
throw new Exception('Opened file is not an XML document: ' . $source['src']);
}
$entities = SimpleSAML_Metadata_SAMLParser::parseDescriptorsElement($doc->documentElement);
return $entities;
return SimpleSAML_Metadata_SAMLParser::parseDescriptorsElement($doc->documentElement);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment