Helper: Clean up unused code.

This commit is contained in:
Konstantin Kovshenin 2017-08-30 18:39:45 +03:00
parent 64467a0925
commit 4a5d0c3ec3
1 changed files with 0 additions and 14 deletions

View File

@ -337,20 +337,6 @@ class WC_Helper {
);
return $filters;
if ( empty( $subscriptions ) ) {
return $filters;
}
foreach ( $filters as $key => $label ) {
$_subs = $subscriptions;
self::_filter( $_subs, $key );
$filters[ $key ] = sprintf( $label, count( $_subs ) );
}
// Cache it.
$_filters = $filters;
return $_filters;
}
/**