jordan imbert
2020-12-17 311a22c7a7e5518e06b0efb2ec6eb5aec453aaf2
Remove always false blocks in parser.c
1个文件已修改
11 ■■■■■ 已修改文件
libscpi/src/parser.c 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
libscpi/src/parser.c
@@ -1399,13 +1399,6 @@
    for (result = 1; result != 0; result = scpiLex_Comma(state, &tmp)) {
        token->len += result;
        if (result == 0) {
            token->type = SCPI_TOKEN_UNKNOWN;
            token->len = 0;
            paramCount = -1;
            break;
        }
        result = scpiParser_parseProgramData(state, &tmp);
        if (tmp.type != SCPI_TOKEN_UNKNOWN) {
            token->len += result;
@@ -1416,10 +1409,6 @@
            break;
        }
        paramCount++;
    }
    if (token->len == -1) {
        token->len = 0;
    }
    if (numberOfParameters != NULL) {