summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-08-23 15:30:43 +0200
committerSergei Golubchik <sergii@pisem.net>2012-08-23 15:30:43 +0200
commitec263757b641a26ea7ce0e733db9dbe0d1dc70ca (patch)
tree1c389381e0500f780d5c52e01fd7bd8aa705f5c2 /dbug
parentef7389be51a992801709949531735282444ca1a9 (diff)
downloadmariadb-git-ec263757b641a26ea7ce0e733db9dbe0d1dc70ca.tar.gz
remove duplicate code from the factorial dbug example
Diffstat (limited to 'dbug')
-rw-r--r--dbug/factorial.c14
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
-