diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-08-23 15:30:43 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-08-23 15:30:43 +0200 |
commit | 05e3e1e71038cc8722f5cbe6b26824fc2edcb0e0 (patch) | |
tree | 1c389381e0500f780d5c52e01fd7bd8aa705f5c2 | |
parent | f3e5121bf9acf3da1ffe9fccbb880f693c2514f9 (diff) | |
download | mariadb-git-05e3e1e71038cc8722f5cbe6b26824fc2edcb0e0.tar.gz |
remove duplicate code from the factorial dbug example
-rw-r--r-- | dbug/factorial.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/dbug/factorial.c b/dbug/factorial.c index 7b190ea8d8e..e1cb77f0e30 100644 --- a/dbug/factorial.c +++ b/dbug/factorial.c @@ -1,14 +1,3 @@ -#ifdef DBUG_OFF /* We are testing dbug */ - -int factorial(register int value) { - if(value > 1) { - value *= factorial(value-1); - } - return value; -} - -#else - #include <my_global.h> int factorial ( @@ -22,6 +11,3 @@ register int value) DBUG_PRINT ("result", ("result is %d", value)); DBUG_RETURN (value); } - -#endif - |