aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parse_tree.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-25 20:29:19 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-25 22:47:44 -0700
commit0dbd83ffaf571dce9b1e8449c28e3ae0040d4e75 (patch)
tree2c6db62184e346a69d4b68ccba35d66952213c1d /src/parse_tree.cpp
parentf4d1657c22c81a7720a91026f915b80d2d6aa6e8 (diff)
Remove some dead code
Diffstat (limited to 'src/parse_tree.cpp')
-rw-r--r--src/parse_tree.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/parse_tree.cpp b/src/parse_tree.cpp
index ed3025ed..eda67ffb 100644
--- a/src/parse_tree.cpp
+++ b/src/parse_tree.cpp
@@ -95,25 +95,6 @@ wcstring parse_error_t::describe(const wcstring &src) const
return this->describe_with_prefix(src, wcstring(), get_is_interactive(), false);
}
-wcstring parse_errors_description(const parse_error_list_t &errors, const wcstring &src, const wchar_t *prefix)
-{
- wcstring target;
- for (size_t i=0; i < errors.size(); i++)
- {
- if (i > 0)
- {
- target.push_back(L'\n');
- }
- if (prefix != NULL)
- {
- target.append(prefix);
- target.append(L": ");
- }
- target.append(errors.at(i).describe(src));
- }
- return target;
-}
-
void parse_error_offset_source_start(parse_error_list_t *errors, size_t amt)
{
assert(errors != NULL);