Skip to content

Commit

Permalink
Remove generation of unused CSS code
Browse files Browse the repository at this point in the history
The following kind of CSS is no longer need since
status_percentage_legend has been obsoleted.

.status-10-percentage { width: 11%; }

Fixes #23141
  • Loading branch information
atrol committed Jul 23, 2017
1 parent 9e81d27 commit 442eb35
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions css/status_config.php
Expand Up @@ -81,7 +81,6 @@
$t_status_string = config_get( 'status_enum_string' );
$t_statuses = MantisEnum::getAssocArrayIndexedByValues( $t_status_string );
$t_colors = config_get( 'status_colors' );
$t_status_percents = auth_is_user_authenticated() ? get_percentage_by_status() : array();

foreach( $t_statuses as $t_id => $t_label ) {
$t_css_class = html_get_status_css_class( $t_id );
Expand All @@ -91,12 +90,6 @@
echo '.' . $t_css_class
. " { color: {$t_colors[$t_label]}; background-color: {$t_colors[$t_label]}; }\n";
}

# Status percentage width class
if( array_key_exists( $t_id, $t_status_percents ) ) {
echo '.' . str_replace( 'color', 'percentage', $t_css_class )
. " { width: {$t_status_percents[$t_id]}%; }\n";
}
}

# Status legend width class
Expand Down

0 comments on commit 442eb35

Please sign in to comment.