We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c010bb + eff93cf commit 09b0114Copy full SHA for 09b0114
parser/prism/Parser.cc
@@ -25,11 +25,6 @@ std::string_view Parser::resolveConstant(pm_constant_id_t constant_id) {
25
}
26
27
std::string_view Parser::extractString(pm_string_t *string) {
28
- if (string->type != pm_string_t::PM_STRING_CONSTANT && string->type != pm_string_t::PM_STRING_SHARED) {
29
- Exception::raise(
30
- "This string needs to be freed eventually with `pm_string_free`, but that isn't implemented yet");
31
- }
32
-
33
return std::string_view(reinterpret_cast<const char *>(pm_string_source(string)), pm_string_length(string));
34
35
0 commit comments