File tree 5 files changed +1
-30
lines changed
5 files changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,6 @@ export default class AlphaNum extends QRDataModeAbstract{
62
62
return true ;
63
63
}
64
64
65
- /**
66
- * @inheritDoc
67
- */
68
- validateStringI ( $string ) {
69
- return AlphaNum . validateString ( $string ) ;
70
- }
71
-
72
65
/**
73
66
* @inheritDoc
74
67
*/
Original file line number Diff line number Diff line change @@ -36,13 +36,6 @@ export default class Byte extends QRDataModeAbstract{
36
36
return typeof $string === 'string' && ! ! $string . length ;
37
37
}
38
38
39
- /**
40
- * @inheritDoc
41
- */
42
- validateStringI ( $string ) {
43
- return Byte . validateString ( $string ) ;
44
- }
45
-
46
39
/**
47
40
* @inheritDoc
48
41
*/
Original file line number Diff line number Diff line change @@ -51,13 +51,6 @@ export default class Numeric extends QRDataModeAbstract{
51
51
return true ;
52
52
}
53
53
54
- /**
55
- * @inheritDoc
56
- */
57
- validateStringI ( $string ) {
58
- return Numeric . validateString ( $string ) ;
59
- }
60
-
61
54
/**
62
55
* @inheritDoc
63
56
*/
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default class QRDataModeAbstract extends QRDataModeInterface{
39
39
constructor ( $data ) {
40
40
super ( ) ; // JS dum
41
41
42
- if ( ! this . validateStringI ( $data ) ) {
42
+ if ( ! this . constructor . validateString ( $data ) ) {
43
43
throw new QRCodeDataException ( 'invalid data' ) ;
44
44
}
45
45
Original file line number Diff line number Diff line change @@ -51,12 +51,4 @@ export default class QRDataModeInterface{
51
51
*/
52
52
static validateString ( $string ) { }
53
53
54
- /**
55
- * same as validateString, but instanced mode because JS is dumb
56
- *
57
- * @param $string
58
- * @returns {boolean }
59
- */
60
- validateStringI ( $string ) { }
61
-
62
54
}
You can’t perform that action at this time.
0 commit comments