From b83043e2a6293e83d5d7fbad70a7e20b131ba33b Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Sat, 27 Apr 2013 15:48:34 +0100 Subject: [PATCH] Remove obsolete code from TPTScriptInterface --- src/cat/TPTScriptInterface.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index 5d9a5e05b..bf08f1e06 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -261,10 +261,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque * words) newValue = GetParticleType(((StringType)value).Value()); if (newValue < 0 || newValue >= PT_NUM) { - if (((StringType)value).Value() == "GOLD" || ((StringType)value).Value() == "gold") - throw GeneralException("No, GOLD will not be an element"); - else - throw GeneralException("Invalid element"); + throw GeneralException("Invalid element"); } } else