mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 1513397 - [release 107] Remove unnecessary constructors (#7419). r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D14277
This commit is contained in:
parent
2afbb547a2
commit
5f143dbce7
@ -203,10 +203,6 @@ function getMenuItems(
|
||||
class EditorMenu extends Component {
|
||||
props: Props;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
shouldComponentUpdate(nextProps) {
|
||||
return nextProps.contextMenu.type === "Editor";
|
||||
}
|
||||
|
@ -126,10 +126,6 @@ export function gutterMenu({
|
||||
class GutterContextMenuComponent extends Component {
|
||||
props: Props;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
shouldComponentUpdate(nextProps) {
|
||||
return nextProps.contextMenu.type === "Gutter";
|
||||
}
|
||||
|
@ -16,10 +16,6 @@ type Props = {
|
||||
class HighlightLines extends Component<Props> {
|
||||
highlightLineRange: Function;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.highlightLineRange();
|
||||
}
|
||||
|
@ -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)";
|
||||
|
Loading…
Reference in New Issue
Block a user