unused code

This commit is contained in:
Marc Delisle
2010-08-03 13:14:25 -04:00
parent a8852c5dc9
commit 29cc239057

View File

@@ -46,7 +46,6 @@ function initPBMSDatabase()
* @uses PMA_Config::get() * @uses PMA_Config::get()
* @uses PMA_Config::settings() * @uses PMA_Config::settings()
* @uses PMA_Config::set() * @uses PMA_Config::set()
* @uses PMA_BS_SetVariables()
* @uses PMA_BS_GetVariables() * @uses PMA_BS_GetVariables()
* @uses PMA_cacheSet() * @uses PMA_cacheSet()
* @uses PMA_cacheGet() * @uses PMA_cacheGet()
@@ -202,36 +201,6 @@ function checkBLOBStreamingPlugins()
return TRUE; return TRUE;
} }
/**
* sets BLOBStreaming variables to a list of specified arguments
* @access public
* @uses PMA_DBI_query()
* @returns boolean - success of variables setup
*/
function PMA_BS_SetVariables($bs_variables)
{
// if no variables exist in array, return false
if (empty($bs_variables) || count($bs_variables) == 0)
return FALSE;
// set BS variables to those specified in array
foreach ($bs_variables as $key=>$val)
if (!is_null($val) && strlen($val) > 0)
{
// set BS variable to specified value
$query = "SET GLOBAL $key=" . PMA_sqlAddSlashes($val);
$result = PMA_DBI_query($query);
// if query fails execution, return false
if (!$result)
return FALSE;
} // end if (!is_null($val) && strlen($val) > 0)
// return true on success
return TRUE;
}
/** /**
* returns a list of BLOBStreaming variables used by MySQL * returns a list of BLOBStreaming variables used by MySQL
* *