Skip to content

Commit

Permalink
Remove unused local variables
Browse files Browse the repository at this point in the history
Issue #26567
  • Loading branch information
atrol committed Jan 9, 2020
1 parent edf6581 commit a6b919b
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions api/soap/mc_issue_api.php
Expand Up @@ -1283,7 +1283,6 @@ function mc_issue_note_add( $p_username, $p_password, $p_issue_id, stdClass $p_n
}

if( isset( $p_note['reporter'] ) ) {
$t_reporter_id = mci_get_user_id( $p_note['reporter'] );
$t_payload['reporter'] = array( 'id' => mci_get_user_id( $p_note['reporter'] ) );
}

Expand Down Expand Up @@ -1440,8 +1439,6 @@ function mc_issue_note_update( $p_username, $p_password, stdClass $p_note ) {
return mci_fault_access_denied( $t_user_id );
}

$t_issue_author_id = bugnote_get_field( $t_issue_note_id, 'reporter_id' );

# Check if the user owns the bugnote and is allowed to update their own bugnotes
# regardless of the update_bugnote_threshold level.
$t_user_owns_the_bugnote = bugnote_is_user_reporter( $t_issue_note_id, $t_user_id );
Expand Down
1 change: 0 additions & 1 deletion bug_view_inc.php
Expand Up @@ -1151,7 +1151,6 @@ function bug_view_button_bug_assign_to( BugData $p_bug ) {
* @return void
*/
function bug_view_action_buttons( $p_bug_id, $p_flags ) {
$t_readonly = bug_is_readonly( $p_bug_id );
$t_bug = bug_get( $p_bug_id );

echo '<div class="btn-group">';
Expand Down
1 change: 0 additions & 1 deletion core/columns_api.php
Expand Up @@ -1665,7 +1665,6 @@ function print_column_overdue( BugData $p_bug, $p_columns_target = COLUMNS_TARGE
if( access_has_bug_level( config_get( 'due_date_view_threshold' ), $p_bug->id ) &&
!date_is_null( $p_bug->due_date ) &&
bug_is_overdue( $p_bug->id ) ) {
$t_overdue_text = lang_get( 'overdue' );
$t_overdue_text_hover = sprintf( lang_get( 'overdue_since' ), date( config_get( 'short_date_format' ), $p_bug->due_date ) );
echo '<i class="fa fa-times-circle-o" title="' . string_display_line( $t_overdue_text_hover ) . '"></i>';
} else {
Expand Down
1 change: 0 additions & 1 deletion core/filter_api.php
Expand Up @@ -1486,7 +1486,6 @@ function filter_get_bug_rows_query_clauses( array $p_filter, $p_project_id = nul
log_event( LOG_FILTERING, 'START NEW FILTER QUERY' );

$t_limit_reporters = config_get( 'limit_reporters' );
$t_report_bug_threshold = config_get( 'report_bug_threshold' );

$t_current_user_id = auth_get_current_user_id();

Expand Down
3 changes: 0 additions & 3 deletions core/plugin_api.php
Expand Up @@ -674,8 +674,6 @@ function plugin_upgrade( MantisPlugin $p_plugin ) {
return false;
}

$t_target = $t_schema[$i][1][0];

switch( $t_schema[$i][0] ) {
case 'InsertData':
$t_sqlarray = array(
Expand All @@ -687,7 +685,6 @@ function plugin_upgrade( MantisPlugin $p_plugin ) {
$t_sqlarray = array(
'UPDATE ' . $t_schema[$i][1][0] . $t_schema[$i][1][1],
);
$t_target = $t_schema[$i][1];
break;

case 'UpdateFunction':
Expand Down
2 changes: 0 additions & 2 deletions core/print_api.php
Expand Up @@ -1171,7 +1171,6 @@ function print_project_user_list_option_list2( $p_user_id ) {
u.user_id IS NULL
ORDER BY p.name';
$t_result = db_query( $t_query, array( (int)$p_user_id, true ) );
$t_category_count = db_num_rows( $t_result );
while( $t_row = db_fetch_array( $t_result ) ) {
$t_project_name = string_attribute( $t_row['name'] );
$t_user_id = $t_row['id'];
Expand Down Expand Up @@ -1220,7 +1219,6 @@ function print_custom_field_projects_list( $p_field_id ) {

foreach( $t_project_ids as $t_project_id ) {
$t_project_name = project_get_field( $t_project_id, 'name' );
$t_sequence = custom_field_get_sequence( $p_field_id, $t_project_id );
echo '<strong>', string_display_line( $t_project_name ), '</strong>: ';
print_extra_small_button( 'manage_proj_custom_field_remove.php?field_id=' . $c_field_id . '&project_id=' . $t_project_id . '&return=custom_field' . $t_security_token, lang_get( 'remove_link' ) );
echo '<br />- ';
Expand Down
1 change: 0 additions & 1 deletion core/project_api.php
Expand Up @@ -594,7 +594,6 @@ function project_get_local_user_rows( $p_project_id ) {
$t_result = db_query( $t_query, array( (int)$p_project_id ) );

$t_user_rows = array();
$t_row_count = db_num_rows( $t_result );

while( $t_row = db_fetch_array( $t_result ) ) {
array_push( $t_user_rows, $t_row );
Expand Down
1 change: 0 additions & 1 deletion core/tag_api.php
Expand Up @@ -1016,7 +1016,6 @@ function tag_stats_attached( $p_tag_id ) {
* @return array Array of tag rows, with share count added
*/
function tag_stats_related( $p_tag_id, $p_limit = 5 ) {
$c_user_id = auth_get_current_user_id();

# Use a filter to get all visible issues for this tag id
$t_filter = array(
Expand Down
1 change: 0 additions & 1 deletion plugins/MantisGraph/core/graph_api.php
Expand Up @@ -554,7 +554,6 @@ function create_cumulative_bydate( array $p_filter = null ) {

$t_last_opened = 0;
$t_last_resolved = 0;
$t_last_still_open = 0;
foreach( $t_calc_metrics as $i => $t_values ) {
$t_date = $i * SECONDS_PER_DAY;
$t_metrics[0][$t_date] = $t_last_opened = $t_last_opened + $t_calc_metrics[$i][0];
Expand Down

0 comments on commit a6b919b

Please sign in to comment.