From 7a9e39a96bc7b7ca2eb783e518eedecd01c1e2a2 Mon Sep 17 00:00:00 2001
From: Christoph Oelckers <coelckers@users.noreply.github.com>
Date: Thu, 11 Nov 2021 20:55:30 +0100
Subject: [PATCH] - delete some inactive code.

---
 source/games/duke/src/gamedef.cpp | 24 ------------------------
 source/games/duke/src/player.cpp  |  9 ---------
 2 files changed, 33 deletions(-)

diff --git a/source/games/duke/src/gamedef.cpp b/source/games/duke/src/gamedef.cpp
index 6488bbe21..ef84b2977 100644
--- a/source/games/duke/src/gamedef.cpp
+++ b/source/games/duke/src/gamedef.cpp
@@ -2898,14 +2898,6 @@ int ConCompiler::parsecommand()
 	case concmd_startlevel:
 		// start at specified level
 		// startlevel <episode> <level>
-#if 0
-		if (!g_bEnhanced)
-		{
-			errorcount++;
-			printf("  * ERROR!(L%ld) Command  '%s' is enhanced only.  Define enhance with the version number your code needs before using this commands.\n", line_number, tempbuf);
-			return 0;
-		}
-#endif
 		// get the ID of the DEF
 		getlabel();	
 		checkforkeyword();
@@ -2935,14 +2927,6 @@ int ConCompiler::parsecommand()
 	case concmd_mapvoxel:
 		// map a tilenum to a voxel.
 		// syntax: mapvoxel <tilenum> <filename (8.3)>
-#if 0
-		if (!g_bEnhanced)
-		{
-			errorcount++;
-			printf("  * ERROR!(L%ld) Command  '%s' is enhanced only.  Define enhance with the version number your code needs before using this commands.\n", line_number, tempbuf);
-			return 0;
-		}
-#endif
 		popscriptvalue(); // don't save in compiled code
 
 		transnum(LABEL_DEFINE);
@@ -2965,14 +2949,6 @@ int ConCompiler::parsecommand()
 	case concmd_myospal:
 	case concmd_myosx:
 	case concmd_myospalx:
-#if 0
-		if (!g_bEnhanced)
-		{
-			errorcount++;
-			printf("  * ERROR!(L%ld) Command  '%s' is enhanced only.  Define enhance with the version number your code needs before using this commands.\n", line_number, tempbuf);
-			return 0;
-		}
-#endif
 		// syntax:
 		// int x, int y, int tilenum, int shade, int orientation
 		// myospal adds char pal
diff --git a/source/games/duke/src/player.cpp b/source/games/duke/src/player.cpp
index be1b5f7b3..10e7d0e4a 100644
--- a/source/games/duke/src/player.cpp
+++ b/source/games/duke/src/player.cpp
@@ -586,15 +586,6 @@ void playerisdead(int snum, int psectlotag, int fz, int cz)
 			}
 			else p->fraggedself++;
 
-#if 0
-			if (myconnectindex == connecthead)
-			{
-				sprintf(tempbuf, "frag %d killed %d\n", p->frag_ps + 1, snum + 1);
-				sendscore(tempbuf);
-				//					  printf(tempbuf);
-			}
-#endif
-
 			p->frag_ps = snum;
 		}
 	}