Skip to content

Commit

Permalink
Remove some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen committed Jan 4, 2016
1 parent dee4da5 commit ccea176
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions client/components/site-selector/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,36 +73,6 @@ module.exports = React.createClass( {
this.refs.siteSearch.blur();
},

visibleCount: function() {
return this.props.sites.selected ? 1 : this.getCount();
},

// more complex translation logic here
getTranslations: function() {
var output = {},
visibleCount = this.visibleCount();

if ( ! this.props.sites.selected ) {
output.selectedSites = this.translate( 'All sites' );
} else {
output.selectedSites = this.translate( '%(numberSelected)s site selected', '%(numberSelected)s sites selected', {
count: visibleCount,
args: {
numberSelected: visibleCount
}
} );
}

output.totalSites = this.translate( '%(numberTotal)s site', 'All %(numberTotal)s Sites', {
count: this.getCount(),
args: {
numberTotal: this.getCount()
}
} );

return output;
},

addNewSite: function() {
return (
<AddNewButton
Expand Down

0 comments on commit ccea176

Please sign in to comment.