[Spice-devel] [PATCH spice-server 15/15] lz4 encoder: Removed unused lz4_encoder_destroy
Pavel Grunt
pgrunt at redhat.com
Thu Nov 19 11:45:05 PST 2015
It was introduced in b532ef0866cefe260ad0f08550f7c40d3580d0d7
but never used.
Signed-off-by: Pavel Grunt <pgrunt at redhat.com>
---
server/lz4_encoder.c | 5 -----
server/lz4_encoder.h | 1 -
2 files changed, 6 deletions(-)
diff --git a/server/lz4_encoder.c b/server/lz4_encoder.c
index b3e38b2..7d4e7f3 100644
--- a/server/lz4_encoder.c
+++ b/server/lz4_encoder.c
@@ -44,11 +44,6 @@ Lz4EncoderContext* lz4_encoder_create(Lz4EncoderUsrContext *usr)
return (Lz4EncoderContext*)enc;
}
-void lz4_encoder_destroy(Lz4EncoderContext* encoder)
-{
- free(encoder);
-}
-
int lz4_encode(Lz4EncoderContext *lz4, int height, int stride, uint8_t *io_ptr,
unsigned int num_io_bytes, int top_down, uint8_t format)
{
diff --git a/server/lz4_encoder.h b/server/lz4_encoder.h
index f1de12a..9dbf3b5 100644
--- a/server/lz4_encoder.h
+++ b/server/lz4_encoder.h
@@ -41,7 +41,6 @@ struct Lz4EncoderUsrContext {
};
Lz4EncoderContext* lz4_encoder_create(Lz4EncoderUsrContext *usr);
-void lz4_encoder_destroy(Lz4EncoderContext *encoder);
/* returns the total size of the encoded data. */
int lz4_encode(Lz4EncoderContext *lz4, int height, int stride, uint8_t *io_ptr,
--
2.5.0
More information about the Spice-devel
mailing list