remove duplicate code from the factorial dbug example

This commit is contained in:
Sergei Golubchik 2012-08-23 15:30:43 +02:00
parent ef7389be51
commit ec263757b6

View file

@ -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