From e3499213222ccc9fe12e74d9417c49da656950dc Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 3 Jan 2015 23:01:09 +0100 Subject: [PATCH] remove orphaned functions the functions are unused since f4efaad. --- models/config.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/models/config.php b/models/config.php index 42f3cb5..03698c0 100644 --- a/models/config.php +++ b/models/config.php @@ -240,28 +240,6 @@ function new_tokens() return Database::get('db')->table('config')->update($values); } -// Save tokens for external authentication -function save_auth_token($type, $value) -{ - return Database::get('db') - ->table('config') - ->update(array( - 'auth_'.$type.'_token' => $value - )); -} - -// Clear authentication tokens -function remove_auth_token($type) -{ - Database::get('db') - ->table('config') - ->update(array( - 'auth_'.$type.'_token' => '' - )); - - $_SESSION['config'] = get_all(); -} - // Get a config value from the DB or from the session function get($name) {