From 2f9f80c4e66ef7a26c620c3c5cbef2fc011628bd Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 9 Jan 2017 08:53:04 -0800 Subject: [PATCH] remove unused function --- lib/Formats/Mf2.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/lib/Formats/Mf2.php b/lib/Formats/Mf2.php index c786ffa..accdf37 100644 --- a/lib/Formats/Mf2.php +++ b/lib/Formats/Mf2.php @@ -525,32 +525,6 @@ class Mf2 { return $sanitized; } - private static function responseDisplayText($name, $summary, $content) { - - // Build a fake h-entry to pass to the comments parser - $input = [ - 'type' => ['h-entry'], - 'properties' => [ - 'name' => [trim($name)], - 'summary' => [trim($summary)], - 'content' => [trim($content)] - ] - ]; - - if(!trim($name)) - unset($input['properties']['name']); - - if(!trim($summary)) - unset($input['properties']['summary']); - - $result = \IndieWeb\comments\parse($input, false, 1024, 4); - - return [ - 'name' => trim($result['name']), - 'content' => $result['text'] - ]; - } - private static function hasNumericKeys(array $arr) { foreach($arr as $key=>$val) if (is_numeric($key))