diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-28 14:13:56 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-28 14:13:56 -0700 |
commit | 8c7bf6d2f362ef705ef04a06542f8c23bee81d89 (patch) | |
tree | 9f1790935cd19f9fd0eae283ebfa940b7786e86b /include | |
parent | 09ef1b1bb68a4517b090f05f947b5af1acb89bd5 (diff) | |
download | volse-hubzilla-8c7bf6d2f362ef705ef04a06542f8c23bee81d89.tar.gz volse-hubzilla-8c7bf6d2f362ef705ef04a06542f8c23bee81d89.tar.bz2 volse-hubzilla-8c7bf6d2f362ef705ef04a06542f8c23bee81d89.zip |
remove unused function
Diffstat (limited to 'include')
-rw-r--r-- | include/network.php | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/include/network.php b/include/network.php index c41d87af0..72f1dacaf 100644 --- a/include/network.php +++ b/include/network.php @@ -368,27 +368,6 @@ function z_post_url($url, $params, $redirects = 0, $opts = array()) { return($ret); } -/** - * @brief Like z_post_url() but with an application/json HTTP header. - * - * Add a "Content-Type: application/json" HTTP-header to $opts and call z_post_url(). - * - * @see z_post_url() - * - * @param string $url - * @param array $params - * @param number $redirects default 0 - * @param array $opts (optional) curl options - * @return z_post_url() - */ -function z_post_url_json($url, $params, $redirects = 0, $opts = array()) { - - $opts = array_merge($opts, array('headers' => array('Content-Type: application/json'))); - - return z_post_url($url,json_encode($params),$redirects,$opts); -} - - function json_return_and_die($x, $content_type = 'application/json') { header("Content-type: $content_type"); echo json_encode($x); @@ -779,7 +758,7 @@ function scale_external_images($s, $include_link = true, $scale_replace = false) * @brief xml2array() will convert the given XML text to an array in the XML structure. * * Link: http://www.bin-co.com/php/scripts/xml2array/ - * Portions significantly re-written by mike@macgirvin.com for Friendica + * Portions significantly re-written by mike@macgirvin.com * (namespaces, lowercase tags, get_attribute default changed, more...) * * Examples: $array = xml2array(file_get_contents('feed.xml')); @@ -1160,8 +1139,6 @@ function discover_by_webbie($webbie, $protocol = '') { $network = null; -// $webbie = strtolower($webbie); - $x = webfinger_rfc7033($webbie, true); if($x && array_key_exists('links',$x) && $x['links']) { foreach($x['links'] as $link) { |