From f5be21175111dd04cc34fd87dd578e60c88e6c02 Mon Sep 17 00:00:00 2001 From: Vlad Vitan Date: Tue, 10 Sep 2024 13:20:46 +0200 Subject: [PATCH] qrg: Remove unused constants --- pkg/qrcodegenerator/qrcode/gateways/ttigpro1.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/qrcodegenerator/qrcode/gateways/ttigpro1.go b/pkg/qrcodegenerator/qrcode/gateways/ttigpro1.go index 51bc796306a..96f5e1dccb2 100644 --- a/pkg/qrcodegenerator/qrcode/gateways/ttigpro1.go +++ b/pkg/qrcodegenerator/qrcode/gateways/ttigpro1.go @@ -22,9 +22,7 @@ import ( ) const ( - ttigpro1FormatID = "ttigpro1" - ttigpro1EUILength = 16 - ttigpro1OwnerTokenLength = 12 + ttigpro1FormatID = "ttigpro1" ) // ttigpro1Regex is the regular expression to match the TTIGPRO1 format. @@ -51,7 +49,7 @@ func (m *ttigpro1) UnmarshalText(text []byte) error { m.ownerToken = matches[2] - if len(m.ownerToken) != ttigpro1OwnerTokenLength { + if len(m.ownerToken) != 12 /* owner token length */ { return errInvalidLength }