diff --git a/elements/Shape.js b/elements/Shape.js index 7f9bca2c..b4251e1f 100644 --- a/elements/Shape.js +++ b/elements/Shape.js @@ -13,7 +13,6 @@ class Shape extends Component { this[key] = val; } } - //noinspection JSUnusedGlobalSymbols this.state = this.touchableGetInitialState(); } } diff --git a/elements/Svg.js b/elements/Svg.js index 450f5350..4b47e4df 100644 --- a/elements/Svg.js +++ b/elements/Svg.js @@ -1,4 +1,3 @@ -//noinspection JSUnresolvedVariable import React from "react"; import { requireNativeComponent, @@ -11,7 +10,6 @@ import extractViewBox from "../lib/extract/extractViewBox"; import Shape from "./Shape"; import G from "./G"; -/** @namespace NativeModules.RNSVGSvgViewManager */ const RNSVGSvgViewManager = NativeModules.RNSVGSvgViewManager; // Svg - Root node of all Svg elements diff --git a/elements/TSpan.js b/elements/TSpan.js index acfcfa87..c2dc82b8 100644 --- a/elements/TSpan.js +++ b/elements/TSpan.js @@ -6,7 +6,6 @@ import extractTransform from "../lib/extract/extractTransform"; import Shape from "./Shape"; import { pickNotNil } from "../lib/util"; -// TSpan elements are shadow components export default class TSpan extends Shape { static displayName = "TSpan"; diff --git a/index.js b/index.js index 7a2fc66b..be3573f0 100644 --- a/index.js +++ b/index.js @@ -46,5 +46,4 @@ export { Mask, }; -//noinspection JSUnusedGlobalSymbols export default Svg; diff --git a/lib/Matrix2D.js b/lib/Matrix2D.js index 75806573..0bc19900 100644 --- a/lib/Matrix2D.js +++ b/lib/Matrix2D.js @@ -74,7 +74,6 @@ export default class Matrix2D { reset = function() { this.a = this.d = 1; this.b = this.c = this.tx = this.ty = 0; - //noinspection JSValidateTypes return this; }; @@ -112,7 +111,6 @@ export default class Matrix2D { } this.tx = a1 * tx + c1 * ty + this.tx; this.ty = b1 * tx + d1 * ty + this.ty; - //noinspection JSValidateTypes return this; }; @@ -191,7 +189,6 @@ export default class Matrix2D { this.tx -= regX * this.a + regY * this.c; this.ty -= regX * this.b + regY * this.d; } - //noinspection JSValidateTypes return this; }; } diff --git a/lib/SvgTouchableMixin.js b/lib/SvgTouchableMixin.js index 9313ac07..49ba33b6 100644 --- a/lib/SvgTouchableMixin.js +++ b/lib/SvgTouchableMixin.js @@ -1,7 +1,6 @@ import { Touchable } from "react-native"; const PRESS_RETENTION_OFFSET = { top: 20, left: 20, right: 20, bottom: 30 }; -//noinspection JSUnusedGlobalSymbols export default { ...Touchable.Mixin, diff --git a/lib/extract/extractBrush.js b/lib/extract/extractBrush.js index 551702a6..e6573143 100644 --- a/lib/extract/extractBrush.js +++ b/lib/extract/extractBrush.js @@ -14,7 +14,6 @@ export default function(colorOrBrush) { // brush if (matched) { return [1, matched[1]]; - //todo: } else { // solid color const [r, g, b, a = 1] = Color(colorOrBrush) diff --git a/lib/extract/extractGradient.js b/lib/extract/extractGradient.js index 69eedb3a..80508894 100644 --- a/lib/extract/extractGradient.js +++ b/lib/extract/extractGradient.js @@ -35,7 +35,6 @@ export default function(props) { const { props: { offset, stopColor, stopOpacity } } = child; const offsetNumber = percentToFloat(offset); if (stopColor && !isNaN(offsetNumber)) { - //noinspection JSUnresolvedFunction const color = Color(stopColor).alpha(extractOpacity(stopOpacity)); const [r, g, b, a = 1] = color.rgb().array(); stops.push([offsetNumber, [r / 255, g / 255, b / 255, a]]); diff --git a/lib/extract/extractText.js b/lib/extract/extractText.js index ba45355b..4aa631a8 100644 --- a/lib/extract/extractText.js +++ b/lib/extract/extractText.js @@ -1,4 +1,3 @@ -//noinspection JSUnresolvedVariable import React, { Children } from "react"; import extractLengthList from "./extractLengthList"; import { pickNotNil } from "../util";