From bc6a328f83cbf93b9e5cc792ac6ed145f510d629 Mon Sep 17 00:00:00 2001 From: Roland Becker Date: Wed, 27 Dec 2017 15:27:25 +0100 Subject: [PATCH] Remove unused local variables Issue #23754 --- core/bug_api.php | 1 - core/custom_field_api.php | 4 ---- core/database_api.php | 2 +- core/history_api.php | 1 - core/print_api.php | 1 - core/summary_api.php | 1 - 6 files changed, 1 insertion(+), 9 deletions(-) diff --git a/core/bug_api.php b/core/bug_api.php index 3a99d7e4f3..462d4c690a 100644 --- a/core/bug_api.php +++ b/core/bug_api.php @@ -507,7 +507,6 @@ function create() { $t_text_id = db_insert_id( db_get_table( 'bug_text' ) ); # check to see if we want to assign this right off - $t_starting_status = config_get( 'bug_submit_status' ); $t_original_status = $this->status; # if not assigned, check if it should auto-assigned. diff --git a/core/custom_field_api.php b/core/custom_field_api.php index 18066c4b7b..8336e25c95 100644 --- a/core/custom_field_api.php +++ b/core/custom_field_api.php @@ -929,7 +929,6 @@ function custom_field_get_value( $p_field_id, $p_bug_id ) { $c_field_id = (int)$p_field_id; $t_row = custom_field_cache_row( $c_field_id ); - $t_access_level_r = $t_row['access_level_r']; # first check permissions if( !custom_field_has_read_access( $c_field_id, $c_bug_id, auth_get_current_user_id() ) ) { @@ -1058,13 +1057,10 @@ function custom_field_get_sequence( $p_field_id, $p_project_id ) { function custom_field_validate( $p_field_id, $p_value ) { $t_row = custom_field_get_definition( $p_field_id ); - $t_name = $t_row['name']; $t_type = $t_row['type']; - $t_possible_values = $t_row['possible_values']; $t_valid_regexp = $t_row['valid_regexp']; $t_length_min = $t_row['length_min']; $t_length_max = $t_row['length_max']; - $t_default_value = $t_row['default_value']; $t_valid = true; $t_length = utf8_strlen( $p_value ); diff --git a/core/database_api.php b/core/database_api.php index be9dcaa3e2..0fe3ebfc9e 100644 --- a/core/database_api.php +++ b/core/database_api.php @@ -696,7 +696,7 @@ function db_error( $p_query = null ) { function db_close() { global $g_db; - $t_result = $g_db->Close(); + $g_db->Close(); } /** diff --git a/core/history_api.php b/core/history_api.php index 1e36e7c4e9..aa3015b8ed 100644 --- a/core/history_api.php +++ b/core/history_api.php @@ -719,7 +719,6 @@ function history_get_type_name( $p_type ) { function history_localize_item( $p_field_name, $p_type, $p_old_value, $p_new_value, $p_linkify = true ) { $t_note = ''; $t_change = ''; - $t_field_localized = $p_field_name; $t_raw = true; if( PLUGIN_HISTORY == $p_type ) { diff --git a/core/print_api.php b/core/print_api.php index 1fdf0d0663..df0c8217cf 100644 --- a/core/print_api.php +++ b/core/print_api.php @@ -1767,7 +1767,6 @@ function print_file_icon( $p_filename ) { * @return void */ function print_rss( $p_feed_url, $p_title = '' ) { - $t_path = config_get_global( 'path' ); echo ''; } diff --git a/core/summary_api.php b/core/summary_api.php index d9f5db31e0..09d37c2ed7 100644 --- a/core/summary_api.php +++ b/core/summary_api.php @@ -632,7 +632,6 @@ function summary_print_by_category() { $t_summary_category_include_project = config_get( 'summary_category_include_project' ); $t_project_id = helper_get_current_project(); - $t_user_id = auth_get_current_user_id(); $t_specific_where = trim( helper_project_specific_where( $t_project_id ) ); if( '1<>1' == $t_specific_where ) {