lib: Remove unused file_lines_slashcont
authorVolker Lendecke <vl@samba.org>
Sun, 14 Sep 2014 16:49:46 +0000 (18:49 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 16 Sep 2014 22:31:21 +0000 (00:31 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
ctdb/lib/util/util.h
lib/util/samba_util.h
lib/util/util_file.c

index 8702f2a05aa57a68fc3409d4640203efd639e9f8..33f46bd3d59a2a02c5d044ea7b3db01d8365bb06 100644 (file)
@@ -332,12 +332,6 @@ the list.
 **/
 _PUBLIC_ char **fd_lines_load(int fd, int *numlines, size_t maxsize, TALLOC_CTX *mem_ctx);
 
-/**
-take a list of lines and modify them to produce a list where \ continues
-a line
-**/
-_PUBLIC_ void file_lines_slashcont(char **lines);
-
 /**
   save a lump of data into a file. Mostly used for debugging 
 */
index 958df88cc69dd93079999f8ca1f09649dae074dc..a8d3cd67d34bbf5ef168b30fbf9a28c023e10efa 100644 (file)
@@ -586,12 +586,6 @@ the list.
 **/
 _PUBLIC_ char **fd_lines_load(int fd, int *numlines, size_t maxsize, TALLOC_CTX *mem_ctx);
 
-/**
-take a list of lines and modify them to produce a list where \ continues
-a line
-**/
-_PUBLIC_ void file_lines_slashcont(char **lines);
-
 _PUBLIC_ bool file_save_mode(const char *fname, const void *packet,
                             size_t length, mode_t mode);
 /**
index 8fd3277e0a754ed689a7d16f78c8ad5200d428c8..886bcae477abf55e368809e1de525d011210700e 100644 (file)
@@ -344,30 +344,6 @@ _PUBLIC_ char **fd_lines_load(int fd, int *numlines, size_t maxsize, TALLOC_CTX
        return file_lines_parse(p, size, numlines, mem_ctx);
 }
 
-
-/**
-take a list of lines and modify them to produce a list where \ continues
-a line
-**/
-_PUBLIC_ void file_lines_slashcont(char **lines)
-{
-       int i, j;
-
-       for (i=0; lines[i];) {
-               int len = strlen(lines[i]);
-               if (lines[i][len-1] == '\\') {
-                       lines[i][len-1] = ' ';
-                       if (lines[i+1]) {
-                               char *p = &lines[i][len];
-                               while (p < lines[i+1]) *p++ = ' ';
-                               for (j = i+1; lines[j]; j++) lines[j] = lines[j+1];
-                       }
-               } else {
-                       i++;
-               }
-       }
-}
-
 _PUBLIC_ bool file_save_mode(const char *fname, const void *packet,
                             size_t length, mode_t mode)
 {