diff --git a/src/components/CardStack.jsx b/src/components/CardStack.jsx index c4dd233..1f6c371 100644 --- a/src/components/CardStack.jsx +++ b/src/components/CardStack.jsx @@ -66,7 +66,6 @@ class CardStack extends React.Component { language={this.props.language} isLoading={this.props.isLoading} isSelected={selections[idx]} - // getNarrativeLinks={this.props.getNarrativeLinks} getCategoryGroup={this.props.getCategoryGroup} getCategoryColor={this.props.getCategoryColor} getCategoryLabel={this.props.getCategoryLabel} diff --git a/src/components/Layout.js b/src/components/Layout.js index 36304a9..72cd0bf 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -119,13 +119,6 @@ class Dashboard extends React.Component { } } - // Broken for time being; need clarification on function - getNarrativeLinks (event) { - const narrative = this.props.narratives.find(nv => nv.id === event.narratives[0]) - if (narrative) return narrative.byId[event.id] - return null - } - setNarrative (narrative) { // only handleSelect if narrative is not null if (narrative) { @@ -143,17 +136,6 @@ class Dashboard extends React.Component { return } - // if (this.props.features.USE_ASSOCIATION_DESCRIPTIONS) { - // activeFilters = activeFilters.reduce((acc, vl) => { - // acc.push({ - // name: vl, - // description: findDescriptionInFilterTree(vl, domain.filters) - // }) - // return acc - // }, []) - // } else { - // activeFilters = activeFilters.map(f => ({ name: f })) - // } activeFilters = activeFilters.map(f => ({ name: f })) const evs = domain.events.filter(ev => { @@ -299,7 +281,6 @@ class Dashboard extends React.Component { onSelect={app.associations.narrative ? this.selectNarrativeStep : this.handleSelect} onHighlight={this.handleHighlight} onToggleCardstack={() => actions.updateSelected([])} - getNarrativeLinks={event => this.getNarrativeLinks(event)} getCategoryColor={this.getCategoryColor} /> { -// validateFilterTree(childNode, node, set, duplicates, hasAssociationDescriptions) -// }) -// } -// } - function findDuplicateAssociations (associations) { const seenSet = new Set([]) const duplicates = [] @@ -177,10 +131,6 @@ export function validateDomain (domain, features) { }) ) - // Validate uniqueness of associations - // const associationSet = new Set([]) - // const duplicateAssociations = [] - // validateFilterTree(domain.associations, {}, associationSet, duplicateAssociations, features.USE_ASSOCIATION_DESCRIPTIONS) const duplicateAssociations = findDuplicateAssociations(domain.associations) // Duplicated associations if (duplicateAssociations.length > 0) {