Author: Niklas Keller (kelunik)
Date: 2021-04-11T22:57:14+02:00

Commit: 
https://github.com/php/web-master/commit/edc40853cd136ff5665b3a077398af87652d1df8
Raw diff: 
https://github.com/php/web-master/commit/edc40853cd136ff5665b3a077398af87652d1df8.diff

Remove is_sqlite_type_available

Last usage was removed in abc631369a2e911ca8eb7d881ebe04fe377252e3.

Changed paths:
  M  include/functions.inc


Diff:

diff --git a/include/functions.inc b/include/functions.inc
index ece0a79..c9c3046 100644
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -212,24 +212,6 @@ function show_country_options($cc = "")
     }
 }
 
-function is_sqlite_type_available($avails, $check) {
-
-       // All possible sqlite types associated with our assigned bitwise values
-       $all = ['sqlite' => 1, 'sqlite3' => 2, 'pdo_sqlite' => 4, 'pdo_sqlite2' 
=> 8];
-
-       if (!$avails || empty($all[$check])) {
-               return false;
-       }
-
-       $avail  = (int) $all[$check];
-       $avails = (int) $avails;
-
-       if (($avails & $avail) === $avail) {
-               return true;
-       }
-       return false;
-}
-
 function verify_ssh_keys($string) {
     return count(get_ssh_keys($string)) > 0;
 }

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to