foxygit / doom Log in
commit b8db918b1d45aa8124a4953305edba550a52db6e
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Nov 30 20:44:20 2010 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Tue Nov 30 20:44:20 2010 +0000

    Remove "-debugfile" command line option and associated variable.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 2179
---
 src/d_main.c   | 10 ----------
 src/d_net.c    |  3 ---
 src/doomstat.h |  1 -
 src/p_setup.c  | 12 +-----------
 4 files changed, 1 insertion(+), 25 deletions(-)

diff --git a/src/d_main.c b/src/d_main.c
index 10eab2b0..378cc5f3 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -124,8 +124,6 @@ int		startmap;
 boolean		autostart;
 int             startloadgame;

-FILE*		debugfile;
-
 boolean		advancedemo;

 // Store demo, do not accept any inputs
@@ -399,14 +397,6 @@ void D_DoomLoop (void)
     if (demorecording)
 	G_BeginRecording ();

-    if (M_CheckParm ("-debugfile"))
-    {
-	char    filename[20];
-	sprintf (filename,"debug%i.txt",consoleplayer);
-	printf ("debug output to: %s\n",filename);
-	debugfile = fopen (filename,"w");
-    }
-
     TryRunTics();

     I_InitGraphics ();
diff --git a/src/d_net.c b/src/d_net.c
index b8e34dec..56f04876 100644
--- a/src/d_net.c
+++ b/src/d_net.c
@@ -405,9 +405,6 @@ void D_CheckNetGame (void)
 //
 void D_QuitNetGame (void)
 {
-    if (debugfile)
-	fclose (debugfile);
-
 #ifdef FEATURE_MULTIPLAYER

     NET_SV_Shutdown();
diff --git a/src/doomstat.h b/src/doomstat.h
index 4fc174cd..a0e21a25 100644
--- a/src/doomstat.h
+++ b/src/doomstat.h
@@ -258,7 +258,6 @@ extern  int		maxammo[NUMAMMO];
 // File handling stuff.
 extern  char *          savegamedir;
 extern	char		basedefault[1024];
-extern  FILE*		debugfile;

 // if true, load all graphics at level load
 extern  boolean         precache;
diff --git a/src/p_setup.c b/src/p_setup.c
index 7d9d4318..3fc95cab 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -755,17 +755,7 @@ P_SetupLevel
     // Make sure all sounds are stopped before Z_FreeTags.
     S_Start ();

-
-#if 0 // UNUSED
-    if (debugfile)
-    {
-	Z_FreeTags (PU_LEVEL, INT_MAX);
-	Z_FileDumpHeap (debugfile);
-    }
-    else
-#endif
-	Z_FreeTags (PU_LEVEL, PU_PURGELEVEL-1);
-
+    Z_FreeTags (PU_LEVEL, PU_PURGELEVEL-1);

     // UNUSED W_Profile ();
     P_InitThinkers ();