Skip to content

Commit

Permalink
Prune away unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Nov 12, 2019
1 parent 9c18c42 commit e3b5612
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/editor/property/PropertyTemplateOutline.jsx
Expand Up @@ -8,7 +8,7 @@ import { isResourceWithValueTemplateRef, resourceToName } from 'Utilities'
import { booleanPropertyFromTemplate } from 'utilities/propertyTemplates'
import PropertyComponent from './PropertyComponent'
import ResourceProperty from './ResourceProperty'
import { findNode, isExpanded, getPropertyTemplate } from 'selectors/resourceSelectors'
import { isExpanded, getPropertyTemplate } from 'selectors/resourceSelectors'

class PropertyTemplateOutline extends Component {
outlineRowClass = () => {
Expand Down Expand Up @@ -52,7 +52,6 @@ class PropertyTemplateOutline extends Component {
PropertyTemplateOutline.propTypes = {
reduxPath: PropTypes.array,
property: PropTypes.object.isRequired,
resourceModel: PropTypes.object,
collapsed: PropTypes.bool,
}

Expand All @@ -61,10 +60,8 @@ const mapStateToProps = (state, ourProps) => {
const propertyURI = reduxPath.pop()
const resourceTemplateId = reduxPath.pop()
const property = getPropertyTemplate(state, resourceTemplateId, propertyURI)
const resourceModel = findNode(state, ourProps.reduxPath)

return {
resourceModel,
property,
collapsed: !isExpanded(state, ourProps.reduxPath),
}
Expand Down

0 comments on commit e3b5612

Please sign in to comment.