summaryrefslogtreecommitdiff
path: root/src/binding-hash.h
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-07-17 15:23:22 -0700
committerGitHub <noreply@github.com>2017-07-17 15:23:22 -0700
commit72ae6f4a7a8d3e417a8db6484a363328f08e6aa9 (patch)
tree10c50cbb9e0d5dbdcecf1e364432154378c49216 /src/binding-hash.h
parent31af1dcc64a26c0ebac901f773a2c9f359b07451 (diff)
downloadwabt-72ae6f4a7a8d3e417a8db6484a363328f08e6aa9.tar.gz
wabt-72ae6f4a7a8d3e417a8db6484a363328f08e6aa9.tar.bz2
wabt-72ae6f4a7a8d3e417a8db6484a363328f08e6aa9.zip
Remove StringSlice (#576)
* Added StringTerminal only used by the lexer and parser, since we need an object that has a non-trivial constructor/destructor (so it can be included in the Token union). * Name all terminal Token members with `t_` prefix * Rename Literal -> LiteralTerminal, and only use for the lexer/parser. * Move LiteralType to literal.h * Use std::vector<std::string> for TextList and rename to TextVector * Renamed CopyStringContents -> RemoveEscapes, and make it a template so it can write to a std::string and a std::vector. * Rename DupTextList -> RemoveEscapes, and simplify it considerably.
Diffstat (limited to 'src/binding-hash.h')
-rw-r--r--src/binding-hash.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/binding-hash.h b/src/binding-hash.h
index 91c7ab35..04de1afd 100644
--- a/src/binding-hash.h
+++ b/src/binding-hash.h
@@ -58,10 +58,6 @@ class BindingHash : public std::unordered_multimap<std::string, Binding> {
return FindIndex(name.to_string());
}
- Index FindIndex(const StringSlice& name) const {
- return FindIndex(string_slice_to_string(name));
- }
-
private:
typedef std::vector<const value_type*> ValueTypeVector;