* [Patch, libfortran] Remove unused empty_internal_buffer function
@ 2010-11-03 20:59 Janne Blomqvist
0 siblings, 0 replies; only message in thread
From: Janne Blomqvist @ 2010-11-03 20:59 UTC (permalink / raw)
To: Fortran List, GCC Patches
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-03 20:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-03 20:59 [Patch, libfortran] Remove unused empty_internal_buffer function Janne Blomqvist
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).