summaryrefslogtreecommitdiff
path: root/compiler/cpp/src/thrift/parse/t_base_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cpp/src/thrift/parse/t_base_type.h')
-rw-r--r--compiler/cpp/src/thrift/parse/t_base_type.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/compiler/cpp/src/thrift/parse/t_base_type.h b/compiler/cpp/src/thrift/parse/t_base_type.h
index ca2b0f6ef..5676f0492 100644
--- a/compiler/cpp/src/thrift/parse/t_base_type.h
+++ b/compiler/cpp/src/thrift/parse/t_base_type.h
@@ -45,7 +45,7 @@ public:
};
t_base_type(std::string name, t_base base)
- : t_type(name), base_(base), string_list_(false), binary_(false), string_enum_(false) {}
+ : t_type(name), base_(base), binary_(false) {}
t_base get_base() const { return base_; }
@@ -55,22 +55,10 @@ public:
bool is_bool() const override { return base_ == TYPE_BOOL; }
- void set_string_list(bool val) { string_list_ = val; }
-
- bool is_string_list() const { return string_list_ && (base_ == TYPE_STRING); }
-
void set_binary(bool val) { binary_ = val; }
bool is_binary() const override { return binary_ && (base_ == TYPE_STRING); }
- void set_string_enum(bool val) { string_enum_ = val; }
-
- bool is_string_enum() const { return string_enum_ && base_ == TYPE_STRING; }
-
- void add_string_enum_val(std::string val) { string_enum_vals_.push_back(val); }
-
- const std::vector<std::string>& get_string_enum_vals() const { return string_enum_vals_; }
-
bool is_base_type() const override { return true; }
static std::string t_base_name(t_base tbase) {
@@ -108,10 +96,7 @@ public:
private:
t_base base_;
- bool string_list_;
bool binary_;
- bool string_enum_;
- std::vector<std::string> string_enum_vals_;
};
#endif