From 106b0abe9f1cbb334069a8b59588aeeb131da07e Mon Sep 17 00:00:00 2001
From: CPunisher <1343316114@qq.com>
Date: Wed, 12 Aug 2020 12:57:10 +0800
Subject: [PATCH] fix unused
---
src/components/app/PartMore.js | 2 +-
src/components/renderer/Renderer25D.js | 3 +--
src/components/renderer/RendererCircle.js | 7 -------
src/components/renderer/RendererDSJ.js | 1 -
src/components/renderer/RendererFunc.js | 2 --
src/components/renderer/RendererImage.js | 3 +--
src/components/renderer/RendererLine.js | 4 +---
src/components/renderer/RendererRandRect.js | 3 +--
src/components/renderer/RendererResImage.js | 3 +--
src/containers/app/ImageZoom.js | 2 +-
10 files changed, 7 insertions(+), 23 deletions(-)
diff --git a/src/components/app/PartMore.js b/src/components/app/PartMore.js
index 2b98987..6c1f1a7 100644
--- a/src/components/app/PartMore.js
+++ b/src/components/app/PartMore.js
@@ -8,7 +8,7 @@ import LinkButton from "../link/LinkButton";
import ImageZoom from "../../containers/app/ImageZoom";
import LinkTrace from "../link/LinkTrace";
import {isPC} from "../../utils/navigatorUtils";
-import {handleScroll, handleZoom} from "../../utils/gaHelper";
+import {handleScroll} from "../../utils/gaHelper";
const pictures = [
'https://7172-qrbtf-1d845d-1255694434.tcb.qcloud.la/QrbtfGallery/gallery04.jpg',
diff --git a/src/components/renderer/Renderer25D.js b/src/components/renderer/Renderer25D.js
index 0515fa3..4aebef5 100644
--- a/src/components/renderer/Renderer25D.js
+++ b/src/components/renderer/Renderer25D.js
@@ -2,7 +2,6 @@ import React from "react";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
-import RendererResImage from "./RendererResImage";
function listPoints(qrcode, params) {
if (!qrcode) return []
@@ -95,4 +94,4 @@ export default Renderer25D
Renderer25D.detail = (
通向三维的半路。可能有一点点难以识别
-);
\ No newline at end of file
+);
diff --git a/src/components/renderer/RendererCircle.js b/src/components/renderer/RendererCircle.js
index c0daf79..d5e6788 100644
--- a/src/components/renderer/RendererCircle.js
+++ b/src/components/renderer/RendererCircle.js
@@ -2,8 +2,6 @@ import React from "react";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
-import LinkTrace from "../link/LinkTrace";
-import {RendererRect} from "./RendererBase";
import {rand} from "../../utils/util";
function listPoints(qrcode, params) {
@@ -16,11 +14,6 @@ function listPoints(qrcode, params) {
const g2 = [];
let id = 0;
- let size = 0.8;
- const vw = [3, -3];
- const vh = [3, -3];
-
- const sq25 = "M32.048565,-1.29480038e-15 L67.951435,1.29480038e-15 C79.0954192,-7.52316311e-16 83.1364972,1.16032014 87.2105713,3.3391588 C91.2846454,5.51799746 94.4820025,8.71535463 96.6608412,12.7894287 C98.8396799,16.8635028 100,20.9045808 100,32.048565 L100,67.951435 C100,79.0954192 98.8396799,83.1364972 96.6608412,87.2105713 C94.4820025,91.2846454 91.2846454,94.4820025 87.2105713,96.6608412 C83.1364972,98.8396799 79.0954192,100 67.951435,100 L32.048565,100 C20.9045808,100 16.8635028,98.8396799 12.7894287,96.6608412 C8.71535463,94.4820025 5.51799746,91.2846454 3.3391588,87.2105713 C1.16032014,83.1364972 5.01544207e-16,79.0954192 -8.63200256e-16,67.951435 L8.63200256e-16,32.048565 C-5.01544207e-16,20.9045808 1.16032014,16.8635028 3.3391588,12.7894287 C5.51799746,8.71535463 8.71535463,5.51799746 12.7894287,3.3391588 C16.8635028,1.16032014 20.9045808,7.52316311e-16 32.048565,-1.29480038e-15 Z";
let otherColor = params[0];
let posColor = params[1];
diff --git a/src/components/renderer/RendererDSJ.js b/src/components/renderer/RendererDSJ.js
index f42ce70..bde7224 100644
--- a/src/components/renderer/RendererDSJ.js
+++ b/src/components/renderer/RendererDSJ.js
@@ -3,7 +3,6 @@ import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
import LinkTrace from "../link/LinkTrace";
-import {RendererRect} from "./RendererBase";
function listPoints(qrcode, params) {
if (!qrcode) return []
diff --git a/src/components/renderer/RendererFunc.js b/src/components/renderer/RendererFunc.js
index c76256f..82ba1b2 100644
--- a/src/components/renderer/RendererFunc.js
+++ b/src/components/renderer/RendererFunc.js
@@ -2,8 +2,6 @@ import React from "react";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
-import LinkTrace from "../link/LinkTrace";
-import RenderDSJ from "./RendererDSJ";
function listPoints(qrcode, params) {
if (!qrcode) return []
diff --git a/src/components/renderer/RendererImage.js b/src/components/renderer/RendererImage.js
index 299b086..5f9f7fe 100644
--- a/src/components/renderer/RendererImage.js
+++ b/src/components/renderer/RendererImage.js
@@ -3,7 +3,6 @@ import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
import {defaultImage} from "../../constant/References";
-import {RendererRandRound} from "./RendererBase";
function listPoints(qrcode, params) {
if (!qrcode) return []
@@ -162,4 +161,4 @@ export default RendererImage
RendererImage.detail = (
加了背景图,试试看还能扫描吗
-);
\ No newline at end of file
+);
diff --git a/src/components/renderer/RendererLine.js b/src/components/renderer/RendererLine.js
index 5bc9427..72a1420 100644
--- a/src/components/renderer/RendererLine.js
+++ b/src/components/renderer/RendererLine.js
@@ -2,8 +2,6 @@ import React from "react";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
-import LinkTrace from "../link/LinkTrace";
-import RenderDSJ from "./RendererDSJ";
import {rand} from "../../utils/util";
function listPoints(qrcode, params) {
@@ -418,4 +416,4 @@ RendererLine.detail = (
RendererLine2.detail = (
交错相连
-);
\ No newline at end of file
+);
diff --git a/src/components/renderer/RendererRandRect.js b/src/components/renderer/RendererRandRect.js
index ce17ab7..78571f6 100644
--- a/src/components/renderer/RendererRandRect.js
+++ b/src/components/renderer/RendererRandRect.js
@@ -1,7 +1,6 @@
import React from "react";
import {rand} from "../../utils/util";
import {createRenderer} from "../style/Renderer";
-import {RendererLine} from "./RendererLine";
function listPoints(qrcode, params) {
if (!qrcode) return []
@@ -51,4 +50,4 @@ export default RendererRandRect
RendererRandRect.detail = (
有一点点骚的配色,很适合你
-);
\ No newline at end of file
+);
diff --git a/src/components/renderer/RendererResImage.js b/src/components/renderer/RendererResImage.js
index 6f97822..02d6264 100644
--- a/src/components/renderer/RendererResImage.js
+++ b/src/components/renderer/RendererResImage.js
@@ -3,7 +3,6 @@ import {gamma} from "../../utils/imageUtils";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {defaultResImage} from "../../constant/References";
-import RendererRandRect from "./RendererRandRect";
function listPoints(qrcode, params) {
if (!qrcode) return []
@@ -190,4 +189,4 @@ export default RendererResImage
RendererResImage.detail = (
满满科技感的重采样二值化像素点阵,有点东西
-);
\ No newline at end of file
+);
diff --git a/src/containers/app/ImageZoom.js b/src/containers/app/ImageZoom.js
index 1a119e3..556184a 100644
--- a/src/containers/app/ImageZoom.js
+++ b/src/containers/app/ImageZoom.js
@@ -10,7 +10,7 @@ const ImageZoom = ({ zoom, ...other }) => {
zoomRef.current.attach(image);
}
- return
+ return
};
export default ImageZoom;