Remove outdated comments

This commit is contained in:
Mikael Sand
2019-01-06 16:59:09 +02:00
parent a57894a184
commit 4a2d0f561a
9 changed files with 0 additions and 12 deletions
-1
View File
@@ -13,7 +13,6 @@ class Shape extends Component {
this[key] = val;
}
}
//noinspection JSUnusedGlobalSymbols
this.state = this.touchableGetInitialState();
}
}
-2
View File
@@ -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
-1
View File
@@ -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";
-1
View File
@@ -46,5 +46,4 @@ export {
Mask,
};
//noinspection JSUnusedGlobalSymbols
export default Svg;
-3
View File
@@ -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;
};
}
-1
View File
@@ -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,
-1
View File
@@ -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)
-1
View File
@@ -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]]);
-1
View File
@@ -1,4 +1,3 @@
//noinspection JSUnresolvedVariable
import React, { Children } from "react";
import extractLengthList from "./extractLengthList";
import { pickNotNil } from "../util";