diff --git a/libc/Makefile b/libc/Makefile
index 950cecfc..92904b5d 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -90,7 +90,6 @@ stdio/fileno_unlocked.o \
stdio/flbf.o \
stdio/flbf_unlocked.o \
stdio/flockfile.o \
-stdio/flushlbf.o \
stdio/fmemopen.o \
stdio/fnewfile.o \
stdio/fparsemode.o \
diff --git a/libc/include/stdio.h b/libc/include/stdio.h
index 91f4ec53..bdc09e89 100644
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
@@ -320,7 +320,6 @@ int flbf_unlocked(FILE* fp);
void fpurge_unlocked(FILE* fp);
#define fpending __fpending
size_t fpending_unlocked(FILE* fp);
-#define flushlbf _flushlbf
#endif
/* The Sortix backends for *printf and *scanf. */
diff --git a/libc/include/stdio_ext.h b/libc/include/stdio_ext.h
index ee4ce365..c6fa81a8 100644
--- a/libc/include/stdio_ext.h
+++ b/libc/include/stdio_ext.h
@@ -39,7 +39,6 @@ int __fwritable(FILE* fp);
int __flbf(FILE* fp);
void __fpurge(FILE* fp);
size_t __fpending(FILE* fp);
-void _flushlbf(void);
__END_DECLS
diff --git a/libc/stdio/flushlbf.cpp b/libc/stdio/flushlbf.cpp
deleted file mode 100644
index cbd81a9a..00000000
--- a/libc/stdio/flushlbf.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
-
- Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013.
-
- This file is part of the Sortix C Library.
-
- The Sortix C Library is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation, either version 3 of the License, or (at your
- option) any later version.
-
- The Sortix C Library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with the Sortix C Library. If not, see .
-
- stdio/flushlbf.cpp
- Flushes all line buffered registered files.
-
-*******************************************************************************/
-
-#include
-#include
-
-extern "C" void flushlbf(void)
-{
- pthread_mutex_lock(&__first_file_lock);
- for ( FILE* fp = __first_file; fp; fp = fp->next )
- fflush(fp);
- pthread_mutex_unlock(&__first_file_lock);
-}