Removing dead code

This commit is contained in:
Jeff Avallone 2019-01-27 08:24:47 -05:00
parent b299d32fc3
commit d4aa207f75
2 changed files with 2 additions and 13 deletions

View File

@ -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 = `<rdf:rdf>
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);

View File

@ -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