]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Remove dead code from unit test
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 18 Dec 2016 10:54:34 +0000 (12:54 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 18 Dec 2016 10:54:34 +0000 (12:54 +0200)
src/lib/test-malloc-overflow.c

index d23ff1883e871eaf040ce9788302adad6b899763..1add5aa399c5bee8279c216e5b0bd0334d4e0623 100644 (file)
@@ -125,13 +125,4 @@ enum fatal_test_state fatal_malloc_overflow(unsigned int stage)
        if (state != FATAL_TEST_FINISHED)
                return state;
        return fatal_malloc_overflow_add(&stage);
-
-       /* individual checks */
-       switch (stage) {
-       case 0:
-               if (stage == 0)
-                       test_begin("MALLOC_MULTIPLY() overflows");
-               break;
-       }
-       return FATAL_TEST_FINISHED;
 }