diff options
author | Aurelien Aptel <aaptel@suse.com> | 2017-05-23 15:37:13 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-07-19 21:22:13 +0200 |
commit | 9ec74a319fc6cbaf5a0159ef9323cd18e79c010f (patch) | |
tree | efe2448e66d14569fae59ba0504d82d322a8d7e6 /librpc | |
parent | 466d5e814727046dd630d5503b43874ec46a365e (diff) | |
download | samba-9ec74a319fc6cbaf5a0159ef9323cd18e79c010f.tar.gz |
librpc/ndr: remove unused ndr_cab_get_compression() function
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/ndr_cab.c | 9 | ||||
-rw-r--r-- | librpc/ndr/ndr_cab.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/librpc/ndr/ndr_cab.c b/librpc/ndr/ndr_cab.c index 2399a2248a6..98800ebd7b5 100644 --- a/librpc/ndr/ndr_cab.c +++ b/librpc/ndr/ndr_cab.c @@ -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; diff --git a/librpc/ndr/ndr_cab.h b/librpc/ndr/ndr_cab.h index 79871530eb9..59dbc991442 100644 --- a/librpc/ndr/ndr_cab.h +++ b/librpc/ndr/ndr_cab.h @@ -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); |