From 9ec74a319fc6cbaf5a0159ef9323cd18e79c010f Mon Sep 17 00:00:00 2001 From: Aurelien Aptel Date: Tue, 23 May 2017 15:37:13 +0200 Subject: librpc/ndr: remove unused ndr_cab_get_compression() function Signed-off-by: Aurelien Aptel Reviewed-by: Guenther Deschner Reviewed-by: Jeremy Allison --- librpc/ndr/ndr_cab.c | 9 --------- librpc/ndr/ndr_cab.h | 1 - 2 files changed, 10 deletions(-) (limited to 'librpc') 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); -- cgit v1.2.1