public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Janne Blomqvist <blomqvist.janne@gmail.com>
To: Fortran List <fortran@gcc.gnu.org>,
	GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [Patch, libfortran] Remove unused empty_internal_buffer function
Date: Wed, 03 Nov 2010 20:59:00 -0000	[thread overview]
Message-ID: <AANLkTimQnZYK8fwoO3jS6Om42=FzDS1w0Zk=Qw6ipq8_@mail.gmail.com> (raw)

Hi,

I committed the patch below as obvious.

diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 4a67c8f..8de8340 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-03  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       * io/unix.h: Remove empty_internal_buffer prototype.
+       * io/unix.c (empty_internal_buffer): Remove unused function.
+
 2010-11-02  Janne Blomqvist  <jb@gcc.gnu.org>

        PR libfortran/45629
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c
index a2903af..67d8eb9 100644
--- a/libgfortran/io/unix.c
+++ b/libgfortran/io/unix.c
@@ -849,15 +849,6 @@ mem_close (unix_stream * s)
   define functional equivalents of the following.
 *********************************************************************/

-/* empty_internal_buffer()-- Zero the buffer of Internal file */
-
-void
-empty_internal_buffer(stream *strm)
-{
-  unix_stream * s = (unix_stream *) strm;
-  memset(s->buffer, ' ', s->file_length);
-}
-
 /* open_internal()-- Returns a stream structure from a character(kind=1)
    internal file */

diff --git a/libgfortran/io/unix.h b/libgfortran/io/unix.h
index dc433d7..956c011 100644
--- a/libgfortran/io/unix.h
+++ b/libgfortran/io/unix.h
@@ -189,9 +189,6 @@ internal_proto(is_special);
 extern void flush_if_preconnected (stream *);
 internal_proto(flush_if_preconnected);

-extern void empty_internal_buffer(stream *);
-internal_proto(empty_internal_buffer);
-
 extern int stream_isatty (stream *);
 internal_proto(stream_isatty);



-- 
Janne Blomqvist

                 reply	other threads:[~2010-11-03 20:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTimQnZYK8fwoO3jS6Om42=FzDS1w0Zk=Qw6ipq8_@mail.gmail.com' \
    --to=blomqvist.janne@gmail.com \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).