Remove unused get_file_size() function.
authorJeremy Allison <jra@samba.org>
Tue, 7 Feb 2012 18:20:36 +0000 (10:20 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 7 Feb 2012 19:56:28 +0000 (20:56 +0100)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Feb  7 20:56:28 CET 2012 on sn-devel-104

source3/include/proto.h
source3/lib/util.c

index 3cfb93f298212deb6210f5dd7bc0a843c4434f14..a94f6c42daf175b3502875e6dc02f5c782652b57 100644 (file)
@@ -490,7 +490,6 @@ bool file_exist_stat(const char *fname,SMB_STRUCT_STAT *sbuf,
                     bool fake_dir_create_times);
 bool socket_exist(const char *fname);
 uint64_t get_file_size_stat(const SMB_STRUCT_STAT *sbuf);
-SMB_OFF_T get_file_size(char *file_name);
 void show_msg(const char *buf);
 int set_message_bcc(char *buf,int num_bytes);
 ssize_t message_push_blob(uint8 **outbuf, DATA_BLOB blob);
index 2e432ab18eb861af824b9050e63adcaf4ce69810..b783c7e9c94e9b72a00ea80a64e9f326ddeef300 100644 (file)
@@ -126,19 +126,6 @@ uint64_t get_file_size_stat(const SMB_STRUCT_STAT *sbuf)
        return sbuf->st_ex_size;
 }
 
-/*******************************************************************
- Returns the size in bytes of the named file.
-********************************************************************/
-
-SMB_OFF_T get_file_size(char *file_name)
-{
-       SMB_STRUCT_STAT buf;
-       buf.st_ex_size = 0;
-       if (sys_stat(file_name, &buf, false) != 0)
-               return (SMB_OFF_T)-1;
-       return get_file_size_stat(&buf);
-}
-
 /*******************************************************************
  Show a smb message structure.
 ********************************************************************/