aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-03 02:21:06 -0800
committerfriendica <info@friendica.com>2014-02-03 02:21:06 -0800
commit6c91580716524e03d68d6d3c95f0fa38b91a1362 (patch)
treee82a3d62a58f41444737f06fd81af737aea77c2e /include/text.php
parentee42079685dd4df721b1090bdaa0d86316e3358a (diff)
downloadvolse-hubzilla-6c91580716524e03d68d6d3c95f0fa38b91a1362.tar.gz
volse-hubzilla-6c91580716524e03d68d6d3c95f0fa38b91a1362.tar.bz2
volse-hubzilla-6c91580716524e03d68d6d3c95f0fa38b91a1362.zip
code cleanup - remove some unused functions
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/include/text.php b/include/text.php
index 1eef4e37a..a72989147 100755
--- a/include/text.php
+++ b/include/text.php
@@ -1516,20 +1516,6 @@ function return_bytes ($size_str) {
}
}
-function generate_user_guid() {
- $found = true;
- do {
- $guid = random_string(16);
- $x = q("SELECT `uid` FROM `user` WHERE `guid` = '%s' LIMIT 1",
- dbesc($guid)
- );
- if(! count($x))
- $found = false;
- } while ($found == true );
- return $guid;
-}
-
-
function base64url_encode($s, $strip_padding = true) {
@@ -1547,23 +1533,6 @@ function base64url_decode($s) {
logger('base64url_decode: illegal input: ' . print_r(debug_backtrace(), true));
return $s;
}
-
-/*
- * // Placeholder for new rev of salmon which strips base64 padding.
- * // PHP base64_decode handles the un-padded input without requiring this step
- * // Uncomment if you find you need it.
- *
- * $l = strlen($s);
- * if(! strpos($s,'=')) {
- * $m = $l % 4;
- * if($m == 2)
- * $s .= '==';
- * if($m == 3)
- * $s .= '=';
- * }
- *
- */
-
return base64_decode(strtr($s,'-_','+/'));
}
@@ -1668,11 +1637,6 @@ function item_post_type($item) {
}
-function normalise_openid($s) {
- return trim(str_replace(array('http://','https://'),array('',''),$s),'/');
-}
-
-
function undo_post_tagging($s) {
$matches = null;
$cnt = preg_match_all('/([@#])\[zrl=(.*?)\](.*?)\[\/zrl\]/ism',$s,$matches,PREG_SET_ORDER);