moved checksum function to its own interface

its not needed that all barcodes have an integer checksum
so it should not be needed in every implementation.
This commit is contained in:
Florian Sundermann committed 2017-01-26 08:20:38 +01:00
1 parent fe0f26ff6d
commit b066487b3e
11 files changed
+57 -34

No files matched your search

-4
View File
@@ -42,10 +42,6 @@ func (c *aztecCode) At(x, y int) color.Color {
return color.White
}
func (c *aztecCode) CheckSum() int {
return 0
}
func (c *aztecCode) set(x, y int) {
c.SetBit(x*c.size+y, true)
}