Skip to content

Commit

Permalink
Remove obsolete/unused variables/props (gregnb#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielliwerant authored and waqasajaz committed Oct 31, 2019
1 parent 3d11570 commit d734767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/MUIDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ class MUIDataTable extends React.Component {
let isFiltered = false;
let isSearchFound = false;
let displayRow = [];
const data = this.state.data.length ? this.state.data : this.props.data;

for (let index = 0; index < row.length; index++) {
let columnDisplay = row[index];
let columnValue = row[index];
Expand Down Expand Up @@ -1358,7 +1358,6 @@ class MUIDataTable extends React.Component {
options={this.options}
page={page}
rowCount={rowCount}
rowsPerPageOptions={this.options.rowsPerPageOptions}
rowsPerPage={rowsPerPage}
changeRowsPerPage={this.changeRowsPerPage}
changePage={this.changePage}
Expand Down
2 changes: 1 addition & 1 deletion src/components/TableHead.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TableHead extends React.Component {
};

render() {
const { classes, columns, count, options, data, page, setCellRef, selectedRows } = this.props;
const { classes, columns, count, options, data, setCellRef, selectedRows } = this.props;

const numSelected = (selectedRows && selectedRows.data.length) || 0;
const isDeterminate = numSelected > 0 && numSelected < count;
Expand Down

0 comments on commit d734767

Please sign in to comment.