librpc/ndr: remove unused ndr_cab_get_compression() function
authorAurelien Aptel <aaptel@suse.com>
Tue, 23 May 2017 13:37:13 +0000 (15:37 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 19 Jul 2017 19:22:13 +0000 (21:22 +0200)
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
librpc/ndr/ndr_cab.c
librpc/ndr/ndr_cab.h

index 2399a2248a663efaecdb0b762e647f435c9f630c..98800ebd7b55c6375c6f81357c5fcb596ae90b13 100644 (file)
@@ -161,15 +161,6 @@ static bool ndr_size_cab_file(const struct cab_file *r, uint32_t *psize)
        return true;
 }
 
-enum cf_compress_type ndr_cab_get_compression(const struct cab_file *r)
-{
-       if (r->cfheader.cFolders == 0) {
-               return CF_COMPRESS_NONE;
-       }
-
-       return r->cffolders[0].typeCompress;
-}
-
 _PUBLIC_ enum ndr_err_code ndr_push_cab_file(struct ndr_push *ndr, int ndr_flags, const struct cab_file *r)
 {
        uint32_t cntr_cffolders_0;
index 79871530eb911ea20b641088e878dcd742930623..59dbc9914421ec168dd7b40f049d8f3a225ce703 100644 (file)
@@ -21,4 +21,3 @@
 
 uint32_t ndr_count_cfdata(const struct cab_file *r);
 uint32_t ndr_cab_generate_checksum(const struct CFDATA *r);
-enum cf_compress_type ndr_cab_get_compression(const struct cab_file *r);