diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2013-04-27 14:48:34 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2013-04-27 14:55:30 (GMT) |
| commit | b83043e2a6293e83d5d7fbad70a7e20b131ba33b (patch) | |
| tree | 0c38f2357cc607c762f0a7f66daa0a9c8720fd27 /src/cat/TPTScriptInterface.cpp | |
| parent | 9bc939d4223ce0d7e7209f2192dbc5779d7d6217 (diff) | |
| download | powder-b83043e2a6293e83d5d7fbad70a7e20b131ba33b.zip powder-b83043e2a6293e83d5d7fbad70a7e20b131ba33b.tar.gz | |
Remove obsolete code from TPTScriptInterface
Diffstat (limited to 'src/cat/TPTScriptInterface.cpp')
| -rw-r--r-- | src/cat/TPTScriptInterface.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index 5d9a5e0..bf08f1e 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -261,10 +261,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * 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 |
