aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tokenizer.cpp')
-rw-r--r--tokenizer.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/tokenizer.cpp b/tokenizer.cpp
index 113f8926..0705e620 100644
--- a/tokenizer.cpp
+++ b/tokenizer.cpp
@@ -96,16 +96,8 @@ int tok_get_error(tokenizer_t *tok)
tokenizer_t::tokenizer_t(const wchar_t *b, tok_flags_t flags) : buff(NULL), orig_buff(NULL), last_type(TOK_NONE), last_pos(0), has_next(false), accept_unfinished(false), show_comments(false), last_quote(0), error(0), squash_errors(false), cached_lineno_offset(0), cached_lineno_count(0)
{
-
- /* We can only generate error messages on the main thread due to wgettext() thread safety issues. */
- if (!(flags & TOK_SQUASH_ERRORS))
- {
- ASSERT_IS_MAIN_THREAD();
- }
-
CHECK(b,);
-
this->accept_unfinished = !!(flags & TOK_ACCEPT_UNFINISHED);
this->show_comments = !!(flags & TOK_SHOW_COMMENTS);
this->squash_errors = !!(flags & TOK_SQUASH_ERRORS);