mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
remove duplicate code from the factorial dbug example
This commit is contained in:
parent
ef7389be51
commit
ec263757b6
1 changed files with 0 additions and 14 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue