mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Remove superfluous code
This commit is contained in:
committed by
Robin Stuart
parent
bfb4d3284b
commit
63a252a573
@ -64,8 +64,6 @@ int matrix_two_of_five(struct zint_symbol *symbol, unsigned char source[], int l
|
||||
int i, error_number;
|
||||
char dest[512]; /* 6 + 80 * 6 + 6 + 1 ~ 512*/
|
||||
|
||||
error_number = 0;
|
||||
|
||||
if (length > 80) {
|
||||
strcpy(symbol->errtxt, "Input too long (C01)");
|
||||
return ZINT_ERROR_TOO_LONG;
|
||||
@ -97,8 +95,6 @@ int industrial_two_of_five(struct zint_symbol *symbol, unsigned char source[], i
|
||||
int i, error_number;
|
||||
char dest[512]; /* 6 + 40 * 10 + 6 + 1 */
|
||||
|
||||
error_number = 0;
|
||||
|
||||
if (length > 45) {
|
||||
strcpy(symbol->errtxt, "Input too long (C03)");
|
||||
return ZINT_ERROR_TOO_LONG;
|
||||
@ -129,8 +125,6 @@ int iata_two_of_five(struct zint_symbol *symbol, unsigned char source[], int len
|
||||
int i, error_number;
|
||||
char dest[512]; /* 4 + 45 * 10 + 3 + 1 */
|
||||
|
||||
error_number = 0;
|
||||
|
||||
if (length > 45) {
|
||||
strcpy(symbol->errtxt, "Input too long (C05)");
|
||||
return ZINT_ERROR_TOO_LONG;
|
||||
@ -162,8 +156,6 @@ int logic_two_of_five(struct zint_symbol *symbol, unsigned char source[], int le
|
||||
int i, error_number;
|
||||
char dest[512]; /* 4 + 80 * 6 + 3 + 1 */
|
||||
|
||||
error_number = 0;
|
||||
|
||||
if (length > 80) {
|
||||
strcpy(symbol->errtxt, "Input too long (C07)");
|
||||
return ZINT_ERROR_TOO_LONG;
|
||||
@ -200,8 +192,6 @@ int interleaved_two_of_five(struct zint_symbol *symbol, const unsigned char sour
|
||||
unsigned char* temp = (unsigned char *) _alloca((length + 2) * sizeof (unsigned char));
|
||||
#endif
|
||||
|
||||
error_number = 0;
|
||||
|
||||
if (length > 89) {
|
||||
strcpy(symbol->errtxt, "Input too long (C09)");
|
||||
return ZINT_ERROR_TOO_LONG;
|
||||
@ -258,8 +248,6 @@ int itf14(struct zint_symbol *symbol, unsigned char source[], int length) {
|
||||
unsigned int count;
|
||||
char localstr[16];
|
||||
|
||||
error_number = 0;
|
||||
|
||||
count = 0;
|
||||
|
||||
if (length > 13) {
|
||||
@ -302,7 +290,6 @@ int dpleit(struct zint_symbol *symbol, unsigned char source[], int length) {
|
||||
char localstr[16];
|
||||
int zeroes;
|
||||
|
||||
error_number = 0;
|
||||
count = 0;
|
||||
if (length > 13) {
|
||||
strcpy(symbol->errtxt, "Input wrong length (C0E)");
|
||||
|
Reference in New Issue
Block a user