Skip to content

Commit 958310f

Browse files
committed
🚿
1 parent 5e63fac commit 958310f

File tree

5 files changed

+1
-30
lines changed

5 files changed

+1
-30
lines changed

src/Data/AlphaNum.js

-7
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ export default class AlphaNum extends QRDataModeAbstract{
6262
return true;
6363
}
6464

65-
/**
66-
* @inheritDoc
67-
*/
68-
validateStringI($string){
69-
return AlphaNum.validateString($string);
70-
}
71-
7265
/**
7366
* @inheritDoc
7467
*/

src/Data/Byte.js

-7
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ export default class Byte extends QRDataModeAbstract{
3636
return typeof $string === 'string' && !!$string.length;
3737
}
3838

39-
/**
40-
* @inheritDoc
41-
*/
42-
validateStringI($string){
43-
return Byte.validateString($string);
44-
}
45-
4639
/**
4740
* @inheritDoc
4841
*/

src/Data/Numeric.js

-7
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@ export default class Numeric extends QRDataModeAbstract{
5151
return true;
5252
}
5353

54-
/**
55-
* @inheritDoc
56-
*/
57-
validateStringI($string){
58-
return Numeric.validateString($string);
59-
}
60-
6154
/**
6255
* @inheritDoc
6356
*/

src/Data/QRDataModeAbstract.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class QRDataModeAbstract extends QRDataModeInterface{
3939
constructor($data){
4040
super(); // JS dum
4141

42-
if(!this.validateStringI($data)){
42+
if(!this.constructor.validateString($data)){
4343
throw new QRCodeDataException('invalid data');
4444
}
4545

src/Data/QRDataModeInterface.js

-8
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,4 @@ export default class QRDataModeInterface{
5151
*/
5252
static validateString($string){}
5353

54-
/**
55-
* same as validateString, but instanced mode because JS is dumb
56-
*
57-
* @param $string
58-
* @returns {boolean}
59-
*/
60-
validateStringI($string){}
61-
6254
}

0 commit comments

Comments
 (0)