[PATCH] Remove readLine() function from loader/loadermisc.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nothing is using this function anymore.
---
 loader/loadermisc.c |   11 -----------
 loader/loadermisc.h |    1 -
 2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/loader/loadermisc.c b/loader/loadermisc.c
index c0fd71e..a156007 100644
--- a/loader/loadermisc.c
+++ b/loader/loadermisc.c
@@ -86,17 +86,6 @@ int copyFile(char * source, char * dest) {
     return rc;
 }
 
-char * readLine(FILE * f) {
-    char buf[1024], *ret;
-
-    ret = fgets(buf, sizeof(buf), f);
-
-    /* chop */
-    buf[strlen(buf) - 1] = '\0';
-
-    return strdup(buf);
-}
-
 /* FIXME: when we only depend on glibc, we could use strvercmp instead */
 /* compare alpha and numeric segments of two versions */
 /* return 1: a is newer than b */
diff --git a/loader/loadermisc.h b/loader/loadermisc.h
index c7e2b52..23ebf4a 100644
--- a/loader/loadermisc.h
+++ b/loader/loadermisc.h
@@ -27,7 +27,6 @@
 int copyFile(char * source, char * dest);
 int copyFileFd(int infd, char * dest, progressCB pbcb,
                struct progressCBdata *data, long long total);
-char * readLine(FILE * f);
 int simpleStringCmp(const void * a, const void * b);
 int totalMemory(void);
 
-- 
1.6.0.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux