summaryrefslogtreecommitdiff
path: root/modules/openid
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openid')
-rw-r--r--modules/openid/openid.inc18
1 files changed, 0 insertions, 18 deletions
diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc
index a6d369067..959a95a9f 100644
--- a/modules/openid/openid.inc
+++ b/modules/openid/openid.inc
@@ -446,21 +446,3 @@ function _openid_get_params($str) {
}
return $data;
}
-
-/**
- * Provide bcpowmod support for PHP4.
- */
-if (!function_exists('bcpowmod')) {
- function bcpowmod($base, $exp, $mod) {
- $square = bcmod($base, $mod);
- $result = 1;
- while (bccomp($exp, 0) > 0) {
- if (bcmod($exp, 2)) {
- $result = bcmod(bcmul($result, $square), $mod);
- }
- $square = bcmod(bcmul($square, $square), $mod);
- $exp = bcdiv($exp, 2);
- }
- return $result;
- }
-}