Skip to content

Commit

Permalink
feat(core): remove unused prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed May 12, 2024
1 parent a7097eb commit acd5ce3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 27 deletions.
5 changes: 0 additions & 5 deletions packages/core/src/props/curve.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PropTypes from 'prop-types'
import without from 'lodash/without'
import {
curveBasis,
Expand Down Expand Up @@ -44,8 +43,6 @@ export const curvePropMapping = {

export const curvePropKeys = Object.keys(curvePropMapping)

export const curvePropType = PropTypes.oneOf(curvePropKeys)

export const closedCurvePropKeys = curvePropKeys.filter(c => c.endsWith('Closed'))

// Safe curves to be used with d3 area shape generator
Expand Down Expand Up @@ -74,8 +71,6 @@ export const lineCurvePropKeys = without(
'linearClosed'
)

export const lineCurvePropType = PropTypes.oneOf(lineCurvePropKeys)

/**
* Returns curve interpolator from given identifier.
*
Expand Down
16 changes: 0 additions & 16 deletions packages/core/src/props/defs.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/src/props/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ export const blendModePropType = PropTypes.oneOf(blendModes)

export * from './colors'
export * from './curve'
export * from './defs'
export * from './stack'
5 changes: 0 additions & 5 deletions packages/core/src/props/stack.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PropTypes from 'prop-types'
import {
// order
stackOrderAscending,
Expand All @@ -24,8 +23,6 @@ export const stackOrderPropMapping = {

export const stackOrderPropKeys = Object.keys(stackOrderPropMapping)

export const stackOrderPropType = PropTypes.oneOf(stackOrderPropKeys)

export const stackOrderFromProp = prop => stackOrderPropMapping[prop]

export const stackOffsetPropMapping = {
Expand All @@ -38,6 +35,4 @@ export const stackOffsetPropMapping = {

export const stackOffsetPropKeys = Object.keys(stackOffsetPropMapping)

export const stackOffsetPropType = PropTypes.oneOf(stackOffsetPropKeys)

export const stackOffsetFromProp = prop => stackOffsetPropMapping[prop]

0 comments on commit acd5ce3

Please sign in to comment.