diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2018-09-07 21:59:50 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2018-09-07 21:59:50 +0300 |
commit | d4c0eb58b7c3388fb3f9410bf7a0eea876336e5c (patch) | |
tree | 46bb2d66352cd02135967a809d501447d1a6bc3c /libgfortran/runtime/environ.c | |
parent | 785425e152b46bad8dd3d43a3082f5858e296dc7 (diff) | |
download | gcc-d4c0eb58b7c3388fb3f9410bf7a0eea876336e5c.zip gcc-d4c0eb58b7c3388fb3f9410bf7a0eea876336e5c.tar.gz gcc-d4c0eb58b7c3388fb3f9410bf7a0eea876336e5c.tar.bz2 |
Remove unused init_unsigned_integer function.
As pointed out by Bernhard Reutner-Fischer, this function is unused
since the fix for PR 53796 in November 2017.
2018-09-07 Janne Blomqvist <jb@gcc.gnu.org>
* runtime/environ.c (init_unsigned_integer): Remove.
From-SVN: r264163
Diffstat (limited to 'libgfortran/runtime/environ.c')
-rw-r--r-- | libgfortran/runtime/environ.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libgfortran/runtime/environ.c b/libgfortran/runtime/environ.c index 22faad3..484b569 100644 --- a/libgfortran/runtime/environ.c +++ b/libgfortran/runtime/environ.c @@ -98,25 +98,6 @@ init_integer (variable * v) } -/* Initialize an integer environment variable which has to be positive. */ - -static void -init_unsigned_integer (variable * v) -{ - char *p, *q; - - p = getenv (v->name); - if (p == NULL) - return; - - for (q = p; *q; q++) - if (!isdigit (*q)) - return; - - *v->var = atoi (p); -} - - /* Initialize a boolean environment variable. We only look at the first letter of the value. */ |