summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2013-03-15 18:36:57 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-25 17:05:31 +0200
commit272b68b2ecf935c15cac5e05062e47114e4cedd4 (patch)
treeab185a67a5b9cd378d50939632b060dff2b2802a /src/misc.c
parentc389013e89e7b04ce43872f2e72d43f77461a3c0 (diff)
downloadscreen-272b68b2ecf935c15cac5e05062e47114e4cedd4.tar.gz
bye bye DEBUG
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/misc.c b/src/misc.c
index 82dada2..78ca0d7 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -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;