summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/util.c b/util.c
index a886067..7d91299 100644
--- a/util.c
+++ b/util.c
@@ -126,24 +126,6 @@ check_dir(dir)
return dir;
}
-char *
-ruby_mktemp()
-{
- char *dir;
- char *buf;
-
- dir = check_dir(getenv("TMP"));
- if (!dir) dir = check_dir(getenv("TMPDIR"));
- if (!dir) dir = "/tmp";
-
- buf = ALLOC_N(char,strlen(dir)+10);
- sprintf(buf, "%s/rbXXXXXX", dir);
- dir = mktemp(buf);
- if (dir == NULL) free(buf);
-
- return dir;
-}
-
#if defined(MSDOS) || defined(__CYGWIN32__) || defined(NT)
/*
* Copyright (c) 1993, Intergraph Corporation