Remove unused code

This commit is contained in:
Frederic Guillot 2016-08-05 21:03:29 -04:00
parent a23e0947e7
commit d13cb5c300
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
2 changed files with 0 additions and 45 deletions

View File

@ -53,28 +53,6 @@ function file_content($field)
} }
function file_info($field)
{
if (isset($_FILES[$field])) {
return array(
'name' => $_FILES[$field]['name'],
'mimetype' => $_FILES[$field]['type'],
'size' => $_FILES[$field]['size'],
);
}
return false;
}
function file_move($field, $destination)
{
if (isset($_FILES[$field]) && ! file_exists($destination)) {
@mkdir(dirname($destination), 0777, true);
move_uploaded_file($_FILES[$field]['tmp_name'], $destination);
}
}
function uri() function uri()
{ {
@ -86,9 +64,3 @@ function is_post()
{ {
return $_SERVER['REQUEST_METHOD'] === 'POST'; return $_SERVER['REQUEST_METHOD'] === 'POST';
} }
function is_get()
{
return $_SERVER['REQUEST_METHOD'] === 'GET';
}

View File

@ -8,12 +8,6 @@ function force_download($filename)
} }
function content_type($mimetype)
{
header('Content-Type: '.$mimetype);
}
function status($status_code) function status($status_code)
{ {
$sapi_name = php_sapi_name(); $sapi_name = php_sapi_name();
@ -77,17 +71,6 @@ function xml($data, $status_code = 200)
} }
function js($data, $status_code = 200)
{
status($status_code);
header('Content-Type: text/javascript; charset=utf-8');
echo $data;
exit;
}
function raw($data, $status_code = 200) function raw($data, $status_code = 200)
{ {
status($status_code); status($status_code);