diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2013-03-15 18:36:57 +0100 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2015-06-25 17:05:31 +0200 |
commit | 272b68b2ecf935c15cac5e05062e47114e4cedd4 (patch) | |
tree | ab185a67a5b9cd378d50939632b060dff2b2802a /src/misc.c | |
parent | c389013e89e7b04ce43872f2e72d43f77461a3c0 (diff) | |
download | screen-272b68b2ecf935c15cac5e05062e47114e4cedd4.tar.gz |
bye bye DEBUG
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -76,7 +76,6 @@ void centerline(char *str, int y) { int l, n; - ASSERT(flayer); n = strlen(str); if (n > flayer->l_width - 1) n = flayer->l_width - 1; @@ -92,7 +91,6 @@ void leftline(char *str, int y, struct mchar *rend) mchar_dol = mchar_blank; mchar_dol.image = '$'; - ASSERT(flayer); l = n = strlen(str); if (n > flayer->l_width - 1) n = flayer->l_width - 1; @@ -258,27 +256,6 @@ int AddXChars(char *buf, int len, char *str) return p - buf; } -#ifdef DEBUG -void opendebug(int new, int shout) -{ - char buf[256]; - - mode_t oumask = umask(0); - - ASSERT(!dfp); - - (void)mkdir(DEBUGDIR, 0777); - sprintf(buf, shout ? "%s/SCREEN.%d" : "%s/screen.%d", DEBUGDIR, getpid()); - if (!(dfp = fopen(buf, new ? "w" : "a"))) - dfp = stderr; - else - (void)fchmod(dfp, 0666); - - (void)umask(oumask); - debug("opendebug: done.\n"); -} -#endif /* DEBUG */ - void sleep1000(int msec) { struct timeval t; |