From a1ebe87a885679feed893fc8f14d2425abd36cc8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 13 Jan 2019 22:42:01 +0100 Subject: STR 3460: removed nanny code for Fluid comments When writing comments, FLuid would check if the comment was C compatible. However, comments don;t need to comply to C syntax. We could check for the "*/", but is that really needed? --- fluid/Fl_Widget_Type.cxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'fluid') diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 426bef90c..7023fbf2d 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1280,12 +1280,6 @@ void comment_cb(Fl_Text_Editor* i, void *v) { } else { int mod = 0; char *c = i->buffer()->text(); - const char *d = c_check(c); - if (d) { - fl_message("Error in comment: %s",d); - if (i->window()) i->window()->make_current(); - haderror = 1; - } for (Fl_Type *o = Fl_Type::first; o; o = o->next) { if (o->selected) { o->comment(c); -- cgit v1.2.3