Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 26, 2021
1 parent 7fd249e commit 7786e19
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/system/footer/shared_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { uniqueDeep, uniqueDeepUnordered } from '../../utils/unique.js'
const mainLogic = function (systems) {
const propEntries = listPropEntries(systems)
const propGroups = getPropGroups(propEntries)
const propGroupsA = reducePropDimensions(propGroups, systems)
const propGroupsA = simplifyPropGroups(propGroups, systems)
const propGroupsB = addTopSystem(propGroupsA)
const propGroupsC = sortSystems(propGroupsB)
const systemsA = finalizeSystems(propGroupsC)
Expand Down Expand Up @@ -86,16 +86,11 @@ const removeDimensionsArray = function ({ propName, propValue }) {
return { propName, propValue }
}

const reducePropDimensions = function (propGroups, systems) {
return propGroups.map((propGroup) =>
reduceEachPropDimensions(propGroup, systems),
)
const simplifyPropGroups = function (propGroups, systems) {
return propGroups.map((propGroup) => simplifyPropGroup(propGroup, systems))
}

const reduceEachPropDimensions = function (
{ propEntries, dimensionsArray },
systems,
) {
const simplifyPropGroup = function ({ propEntries, dimensionsArray }, systems) {
const dimensionsArrayA = skipRedundantInfo(dimensionsArray, systems)
const dimensionsArrayB = uniqueDeep(dimensionsArrayA)
const dimensionsArrayC = normalizeTopSystem(dimensionsArrayB)
Expand Down

0 comments on commit 7786e19

Please sign in to comment.