[Barcode] removed some unused variables
Merge pull request #5083 from shieldo/patch-1

[Barcode] removed some unused variables
Merge branch 'hotfix/5083'

Close #5083