Browse Source

remove unused function

pull/64/head
Aaron Parecki 4 years ago
parent
commit
03668db379
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 0 additions and 13 deletions
  1. +0
    -13
      controllers/auth.php

+ 0
- 13
controllers/auth.php View File

@ -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();

Loading…
Cancel
Save