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 | ec263757b641a26ea7ce0e733db9dbe0d1dc70ca (patch) | |
tree | 1c389381e0500f780d5c52e01fd7bd8aa705f5c2 /dbug | |
parent | ef7389be51a992801709949531735282444ca1a9 (diff) | |
download | mariadb-git-ec263757b641a26ea7ce0e733db9dbe0d1dc70ca.tar.gz |
remove duplicate code from the factorial dbug example
Diffstat (limited to 'dbug')
-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 - |