diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-02-07 03:53:07 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-02-07 03:53:07 +0000 |
commit | 43bc364af4752ae8c673aa9fff8009f8a228b7ef (patch) | |
tree | 2dac056475dbc38ade6ba46a2af7753a7c289fb0 /src | |
parent | 03d967abb59c2e720e1936cbc76ef37622616cd1 (diff) |
remove unused functions
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texstore.c | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index ea85b503db..52f6c3f89a 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -1,4 +1,4 @@ -/* $Id: texstore.c,v 1.2 2001/02/07 03:27:41 brianp Exp $ */ +/* $Id: texstore.c,v 1.3 2001/02/07 03:53:07 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -389,49 +389,6 @@ set_teximage_component_sizes( struct gl_texture_image *texImage ) } -/* - * Compute log base 2 of n. - * If n isn't an exact power of two return -1. - * If n<0 return -1. - */ -static int -logbase2( int n ) -{ - GLint i = 1; - GLint log2 = 0; - - if (n<0) { - return -1; - } - - while ( n > i ) { - i *= 2; - log2++; - } - if (i != n) { - return -1; - } - else { - return log2; - } -} - - - -/* - * Return GL_TRUE if internalFormat is a compressed format, return GL_FALSE - * otherwise. - */ -static GLboolean -is_compressed_format(GLcontext *ctx, GLenum internalFormat) -{ - if (ctx->Driver.IsCompressedFormat) { - return (*ctx->Driver.IsCompressedFormat)(ctx, internalFormat); - } - return GL_FALSE; -} - - /* * Given an internal texture format enum or 1, 2, 3, 4 return the |