summaryrefslogtreecommitdiff
path: root/controllers/auth.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-12-17 14:38:20 -0800
committerAaron Parecki <aaron@parecki.com>2016-12-17 14:38:20 -0800
commit03668db3798ba1398f58adaffc571df8f3ae8cbd (patch)
tree3748348b712272b72be6109239cf11d7c83dc14a /controllers/auth.php
parent1fac25a34063e7e47778651639d75c10c861ce21 (diff)
remove unused function
Diffstat (limited to 'controllers/auth.php')
-rw-r--r--controllers/auth.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/controllers/auth.php b/controllers/auth.php
index 4db8fde..f4ea73a 100644
--- a/controllers/auth.php
+++ b/controllers/auth.php
@@ -4,19 +4,6 @@ function buildRedirectURI() {
return Config::$base_url . 'auth/callback';
}
-function build_url($parsed_url) {
- $scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
- $host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
- $port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
- $user = isset($parsed_url['user']) ? $parsed_url['user'] : '';
- $pass = isset($parsed_url['pass']) ? ':' . $parsed_url['pass'] : '';
- $pass = ($user || $pass) ? "$pass@" : '';
- $path = isset($parsed_url['path']) ? $parsed_url['path'] : '';
- $query = isset($parsed_url['query']) ? '?' . $parsed_url['query'] : '';
- $fragment = isset($parsed_url['fragment']) ? '#' . $parsed_url['fragment'] : '';
- return "$scheme$user$pass$host$port$path$query$fragment";
-}
-
$app->get('/', function($format='html') use($app) {
$res = $app->response();