From d4aa207f757417ff5b60ba8d1f65fe4f825959cc Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 27 Jan 2019 08:24:47 -0500 Subject: [PATCH] Removing dead code --- src/rendering/SVG/index.js | 14 ++------------ src/rendering/Text/index.js | 1 - 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/rendering/SVG/index.js b/src/rendering/SVG/index.js index 1eb24bd..e208963 100644 --- a/src/rendering/SVG/index.js +++ b/src/rendering/SVG/index.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import * as style from './style'; +const padding = 10; const namespaceProps = { 'xmlns': 'http://www.w3.org/2000/svg', 'xmlns:cc': 'http://creativecommons.org/ns#', @@ -22,24 +23,13 @@ const metadata = ` class SVG extends React.PureComponent { static propTypes = { - onReflow: PropTypes.func, children: PropTypes.node, - padding: PropTypes.number, innerWidth: PropTypes.number, innerHeight: PropTypes.number } - static defaultProps = { - padding: 10 - } - - state = { - width: 0, - height: 0 - } - render() { - const { padding, innerWidth, innerHeight, children } = this.props; + const { innerWidth, innerHeight, children } = this.props; const width = Math.round(innerWidth + 2 * padding); const height = Math.round(innerHeight + 2 * padding); diff --git a/src/rendering/Text/index.js b/src/rendering/Text/index.js index 118ebcb..7bc3d01 100644 --- a/src/rendering/Text/index.js +++ b/src/rendering/Text/index.js @@ -7,7 +7,6 @@ class Text extends React.PureComponent { static propTypes = { quoted: PropTypes.bool, transform: PropTypes.string, - onReflow: PropTypes.func, children: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.node), PropTypes.node