summaryrefslogtreecommitdiff
path: root/lib/gnutls_compress.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-09-01 17:38:34 +0200
committerSimon Josefsson <simon@josefsson.org>2008-09-01 17:38:34 +0200
commit962381ce73815fbbe4b9f1839fff27773c679e6a (patch)
treeda574108b7c8ae47faf2783d87235c39b6fd7e83 /lib/gnutls_compress.c
parent892db7f27961f4bfce8fd78068d4aafde190431b (diff)
downloadgnutls-962381ce73815fbbe4b9f1839fff27773c679e6a.tar.gz
Remove unused stuff.
Diffstat (limited to 'lib/gnutls_compress.c')
-rw-r--r--lib/gnutls_compress.c30
1 files changed, 9 insertions, 21 deletions
diff --git a/lib/gnutls_compress.c b/lib/gnutls_compress.c
index a0cf916a8f..e177defd16 100644
--- a/lib/gnutls_compress.c
+++ b/lib/gnutls_compress.c
@@ -131,18 +131,6 @@ static const gnutls_compression_method_t supported_compressions[] = {
GNUTLS_COMPRESSION_LOOP( if(p->num == num) { a; break; } )
/* Compression Functions */
-int
-_gnutls_compression_priority (gnutls_session_t session,
- gnutls_compression_method_t algorithm)
-{ /* actually returns the priority */
- unsigned int i;
- for (i = 0; i < session->internals.priorities.compression.algorithms; i++)
- {
- if (session->internals.priorities.compression.priority[i] == algorithm)
- return i;
- }
- return -1;
-}
/**
* gnutls_compression_get_name - Returns a string with the name of the specified compression algorithm
@@ -214,8 +202,8 @@ _gnutls_compression_get_num (gnutls_compression_method_t algorithm)
return ret;
}
-int
-_gnutls_compression_get_wbits (gnutls_compression_method_t algorithm)
+static int
+get_wbits (gnutls_compression_method_t algorithm)
{
int ret = -1;
/* avoid prefix */
@@ -223,8 +211,8 @@ _gnutls_compression_get_wbits (gnutls_compression_method_t algorithm)
return ret;
}
-int
-_gnutls_compression_get_mem_level (gnutls_compression_method_t algorithm)
+static int
+get_mem_level (gnutls_compression_method_t algorithm)
{
int ret = -1;
/* avoid prefix */
@@ -232,8 +220,8 @@ _gnutls_compression_get_mem_level (gnutls_compression_method_t algorithm)
return ret;
}
-int
-_gnutls_compression_get_comp_level (gnutls_compression_method_t algorithm)
+static int
+get_comp_level (gnutls_compression_method_t algorithm)
{
int ret = -1;
/* avoid prefix */
@@ -364,9 +352,9 @@ _gnutls_comp_init (gnutls_compression_method_t method, int d)
int comp_level;
z_stream *zhandle;
- window_bits = _gnutls_compression_get_wbits (method);
- mem_level = _gnutls_compression_get_mem_level (method);
- comp_level = _gnutls_compression_get_comp_level (method);
+ window_bits = get_wbits (method);
+ mem_level = get_mem_level (method);
+ comp_level = get_comp_level (method);
ret->handle = gnutls_malloc (sizeof (z_stream));
if (ret->handle == NULL)