From 74c84c7759ec3553042374aa6793ba8535b1f3ca Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Fri, 30 Jun 2017 22:10:43 +0300 Subject: [PATCH] Useless return. --- group.php | 2 -- library/TorrentPier/TorrentPier/Legacy/Cache/Xcache.php | 1 - library/includes/functions_admin_cron.php | 4 ---- library/includes/functions_admin_torrent.php | 1 - library/includes/functions_torrent.php | 4 ---- 5 files changed, 12 deletions(-) diff --git a/group.php b/group.php index e2c272d8a..50f89aecb 100644 --- a/group.php +++ b/group.php @@ -41,8 +41,6 @@ function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$ } else { $www = ''; } - - return; } $user->session_start(array('req_login' => true)); diff --git a/library/TorrentPier/TorrentPier/Legacy/Cache/Xcache.php b/library/TorrentPier/TorrentPier/Legacy/Cache/Xcache.php index bf864c599..0f01c88a3 100644 --- a/library/TorrentPier/TorrentPier/Legacy/Cache/Xcache.php +++ b/library/TorrentPier/TorrentPier/Legacy/Cache/Xcache.php @@ -64,7 +64,6 @@ class Xcache extends Common xcache_clear_cache(XC_TYPE_PHP, 0); xcache_clear_cache(XC_TYPE_VAR, 0); - return; } public function is_installed() diff --git a/library/includes/functions_admin_cron.php b/library/includes/functions_admin_cron.php index 0f6b26433..9356c305e 100644 --- a/library/includes/functions_admin_cron.php +++ b/library/includes/functions_admin_cron.php @@ -46,21 +46,17 @@ function run_jobs($jobs) END WHERE cron_id IN ($jobs) "); - - return; } function delete_jobs($jobs) { OLD_DB()->query('DELETE FROM ' . BB_CRON . " WHERE cron_id IN ($jobs)"); - return; } function toggle_active($jobs, $cron_action) { $active = ($cron_action == 'disable') ? 0 : 1; OLD_DB()->query('UPDATE ' . BB_CRON . " SET cron_active = $active WHERE cron_id IN ($jobs)"); - return; } function validate_cron_post($cron_arr) diff --git a/library/includes/functions_admin_torrent.php b/library/includes/functions_admin_torrent.php index c95884f0d..6b57a4060 100644 --- a/library/includes/functions_admin_torrent.php +++ b/library/includes/functions_admin_torrent.php @@ -41,7 +41,6 @@ function update_table_bool($table_name, $key, $field_name, $field_def_val) } } } - return; } function set_tpl_vars($default_cfg, $cfg) diff --git a/library/includes/functions_torrent.php b/library/includes/functions_torrent.php index 10c5723b2..a1b7ce8a3 100644 --- a/library/includes/functions_torrent.php +++ b/library/includes/functions_torrent.php @@ -160,8 +160,6 @@ function delete_torrent($attach_id, $mode = '') torrent_auth_check($forum_id, $poster_id); tracker_unregister($attach_id); delete_attachment(0, $attach_id); - - return; } function change_tor_status($attach_id, $new_tor_status) @@ -360,8 +358,6 @@ function tracker_register($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVED $mess = sprintf(trans('messages.BT_REGISTERED'), DOWNLOAD_URL . $attach_id); bb_die($mess); } - - return; } function send_torrent_with_passkey($filename)