Bug 1513397 - [release 107] Remove unnecessary constructors (#7419). r=davidwalsh

Differential Revision: https://phabricator.services.mozilla.com/D14277
This commit is contained in:
Jason Laster 2018-12-12 11:11:30 -05:00
parent 2afbb547a2
commit 5f143dbce7
4 changed files with 0 additions and 16 deletions

View File

@ -203,10 +203,6 @@ function getMenuItems(
class EditorMenu extends Component {
props: Props;
constructor() {
super();
}
shouldComponentUpdate(nextProps) {
return nextProps.contextMenu.type === "Editor";
}

View File

@ -126,10 +126,6 @@ export function gutterMenu({
class GutterContextMenuComponent extends Component {
props: Props;
constructor() {
super();
}
shouldComponentUpdate(nextProps) {
return nextProps.contextMenu.type === "Gutter";
}

View File

@ -16,10 +16,6 @@ type Props = {
class HighlightLines extends Component<Props> {
highlightLineRange: Function;
constructor() {
super();
}
componentDidMount() {
this.highlightLineRange();
}

View File

@ -28,10 +28,6 @@ export default class ResultList extends Component<Props> {
role: "listbox"
};
constructor(props: Props) {
super(props);
}
renderListItem = (item: any, index: number) => {
if (item.value === "/" && item.title === "") {
item.title = "(index)";