Skip to content

Commit

Permalink
Remove unused function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaspar Arme committed Oct 8, 2021
1 parent b646e9e commit bd4b3e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/js/components/DataTypes/Object.js
Expand Up @@ -215,7 +215,7 @@ class RjvObject extends React.PureComponent {
}
};

getObjectMetaData = src => {
getObjectMetaData = () => {
const { size, hovered } = this.state;
return hovered && <VariableMeta size={size} {...this.props} />;
};
Expand Down Expand Up @@ -259,15 +259,15 @@ class RjvObject extends React.PureComponent {
};

getBraceStart(object_type, expanded) {
const { src, theme, iconStyle, parent_type, jsvRoot } = this.props;
const { theme, iconStyle, parent_type, jsvRoot } = this.props;

if (parent_type === 'array_group') {
return (
<span>
<span {...Theme(theme, 'brace')}>
{object_type === 'array' ? '[' : '{'}
</span>
{expanded ? this.getObjectMetaData(src) : null}
{expanded ? this.getObjectMetaData() : null}
</span>
);
}
Expand All @@ -277,7 +277,7 @@ class RjvObject extends React.PureComponent {
return (
<span>
<span
onClick={e => {
onClick={() => {
this.toggleCollapsed();
}}
{...Theme(theme, 'brace-row')}
Expand All @@ -298,7 +298,7 @@ class RjvObject extends React.PureComponent {
{object_type === 'array' ? '[' : '{'}
</span>
</span>
{expanded ? this.getObjectMetaData(src) : null}
{expanded ? this.getObjectMetaData() : null}
</span>
);
}
Expand Down Expand Up @@ -361,7 +361,7 @@ class RjvObject extends React.PureComponent {
>
{object_type === 'array' ? ']' : '}'}
</span>
{expanded ? null : this.getObjectMetaData(src)}
{expanded ? null : this.getObjectMetaData()}
</span>
</div>
);
Expand Down

0 comments on commit bd4b3e6

Please sign in to comment.