Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused local variables
Issue #23754
  • Loading branch information
atrol committed Jan 3, 2018
1 parent 0ec2bd1 commit bc6a328
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion core/bug_api.php
Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions core/custom_field_api.php
Expand Up @@ -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() ) ) {
Expand Down Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion core/database_api.php
Expand Up @@ -696,7 +696,7 @@ function db_error( $p_query = null ) {
function db_close() {
global $g_db;

$t_result = $g_db->Close();
$g_db->Close();
}

/**
Expand Down
1 change: 0 additions & 1 deletion core/history_api.php
Expand Up @@ -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 ) {
Expand Down
1 change: 0 additions & 1 deletion core/print_api.php
Expand Up @@ -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 '<a class="rss" rel="alternate" href="', htmlspecialchars( $p_feed_url ), '" title="', $p_title, '"><i class="fa fa-rss fa-lg orange" alt="', $p_title, '"></i></a>';
}

Expand Down
1 change: 0 additions & 1 deletion core/summary_api.php
Expand Up @@ -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 ) {
Expand Down

0 comments on commit bc6a328

Please sign in to comment.