From a53531b93084f531f9bf72b4cd3e3369cb036bca Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 15 Feb 2019 19:20:25 +0100 Subject: Remove superfluous match_type::STATE It was only partially removed when removing identification. --- src/include/tome/squelch/condition.hpp | 8 ++++---- src/squelch/condition.cc | 1 - src/squelch/condition_metadata.cc | 5 ----- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/include/tome/squelch/condition.hpp b/src/include/tome/squelch/condition.hpp index 86396530..fcb0bdb4 100644 --- a/src/include/tome/squelch/condition.hpp +++ b/src/include/tome/squelch/condition.hpp @@ -20,10 +20,10 @@ namespace squelch { * Types of matches used for conditions. */ enum class match_type { - AND , OR , NOT , NAME , CONTAIN , - INSCRIBED, DISCOUNT, SYMBOL , STATE , STATUS , - TVAL , SVAL , RACE , SUBRACE , CLASS , - LEVEL , SKILL , ABILITY, INVENTORY, EQUIPMENT }; + AND , OR , NOT , NAME , CONTAIN, + INSCRIBED, DISCOUNT, SYMBOL , STATUS , TVAL , + SVAL , RACE , SUBRACE , CLASS , LEVEL , + SKILL , ABILITY , INVENTORY, EQUIPMENT }; /** * Bidirectional map between enumeration values and strings. diff --git a/src/squelch/condition.cc b/src/squelch/condition.cc index 43802c41..8768774d 100644 --- a/src/squelch/condition.cc +++ b/src/squelch/condition.cc @@ -34,7 +34,6 @@ EnumStringMap &match_mapping() { match_type::INSCRIBED, "inscribed" }, { match_type::DISCOUNT, "discount" }, { match_type::SYMBOL, "symbol" }, - { match_type::STATE, "state" }, { match_type::STATUS, "status" }, { match_type::TVAL, "tval" }, { match_type::SVAL, "sval" }, diff --git a/src/squelch/condition_metadata.cc b/src/squelch/condition_metadata.cc index 2ede08f2..3a3f49d0 100644 --- a/src/squelch/condition_metadata.cc +++ b/src/squelch/condition_metadata.cc @@ -301,10 +301,6 @@ static void display_desc(match_type match_type_) line("Check is true if object symbol is ok"); break; - case match_type::STATE: - line("Check is true if object is identified/unidentified"); - break; - case match_type::STATUS: line("Check is true if object status is ok"); break; @@ -364,7 +360,6 @@ std::shared_ptr new_condition_interactive() match_type::INSCRIBED, match_type::DISCOUNT, match_type::SYMBOL, - match_type::STATE, match_type::STATUS, match_type::TVAL, match_type::SVAL, -- cgit v1.2.3