summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-12-04 16:28:07 +0100
committerMatthias Melcher <github@matthiasm.com>2023-12-04 16:28:07 +0100
commit75c97edb1e7af1afe317af796a3c73c35e19df23 (patch)
treebce28bac5ceaf79dceabc2b41b4162847848a85f /fluid/Fl_Function_Type.cxx
parent1476d215f3db5063f26b87481910b7cbe1d4043f (diff)
#858: Fluid: removed duplicate and false code
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index f47b77151..852a33c2c 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -1585,7 +1585,6 @@ Fl_Type *Fl_Comment_Type::make(Strategy strategy) {
o->name("my comment");
o->add(p, strategy);
o->factory = this;
- o->title_buf[0] = 0;
return o;
}
@@ -1755,35 +1754,10 @@ void Fl_Comment_Type::open() {
break;
}
BREAK2:
- title_buf[0] = 0;
comment_panel->hide();
}
/**
- Create a title for the Widget Browser by extracting the first 50 characters of the comment.
- */
-const char *Fl_Comment_Type::title() {
- const char* n = name();
- if (!n || !*n) return type_name();
- if (title_buf[0]==0) {
- const char *s = n;
- char *d = title_buf;
- int i = 50;
- while (--i > 0) {
- char n = *s++;
- if (n==0) break;
- if (n=='\r') { *d++ = '\\'; *d++ = 'r'; i--; }
- else if (n=='\n') { *d++ = '\\'; *d++ = 'n'; i--; }
- else if ((n >= 0) && (n < 32)) { *d++ = '^'; *d++ = 'A'+n; i--; }
- else *d++ = n;
- }
- if (i<=0) { *d++ = '.'; *d++ = '.'; *d++ = '.'; }
- *d++ = 0;
- }
- return title_buf;
-}
-
-/**
Write the comment to the files.
*/
void Fl_Comment_Type::write_code1(Fd_Code_Writer& f) {