Skip to content

Commit

Permalink
tuned: Drop unused class
Browse files Browse the repository at this point in the history
It is not used anywhere and it just makes linter unhappy.
  • Loading branch information
marusak authored and KKoukiou committed Oct 10, 2019
1 parent 3fe6dfe commit 5ed5dfc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"space-before-function-paren": "off",
"standard/no-callback-literal": "off",

"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
Expand Down
28 changes: 0 additions & 28 deletions pkg/tuned/change-profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,31 +106,3 @@ TunedDialogBody.propTypes = {
change_selected: PropTypes.func.isRequired,
profiles: PropTypes.array.isRequired,
};

export class TunedLink extends React.Component {
render() {
var self = this;

var text = self.props.active;
var disabled = false;

if (self.props.failed) {
text = _("tuned-failure", "error");
disabled = true;
} else if (self.props.state != "running") {
text = _("tuned-not-running", "none");
}

if (self.props.state == "not-installed")
disabled = true;

var opts = { };
var classes = "action-trigger";
if (disabled) {
opts.disabled = 'disabled';
classes += " disabled";
}

return <a tabIndex="0" className={ classes } {...opts}>{ text }</a>;
}
}

0 comments on commit 5ed5dfc

Please sign in to comment.