aboutsummaryrefslogtreecommitdiff
path: root/video/codecs
diff options
context:
space:
mode:
authordhewg2011-03-29 21:55:21 +0200
committerdhewg2011-03-29 21:57:56 +0200
commitd83a83ef5021c1e329127d3c6402088aeb1c1dd1 (patch)
tree5ade1c22a76ed8a10fac3d4c488a9866d649508e /video/codecs
parent8c70f2a58492335e9045c5abfd291887b2d7a339 (diff)
downloadscummvm-rg350-d83a83ef5021c1e329127d3c6402088aeb1c1dd1.tar.gz
scummvm-rg350-d83a83ef5021c1e329127d3c6402088aeb1c1dd1.tar.bz2
scummvm-rg350-d83a83ef5021c1e329127d3c6402088aeb1c1dd1.zip
JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
Diffstat (limited to 'video/codecs')
-rw-r--r--video/codecs/qdm2.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/video/codecs/qdm2.cpp b/video/codecs/qdm2.cpp
index c7e1ffe54f..762f56b3d7 100644
--- a/video/codecs/qdm2.cpp
+++ b/video/codecs/qdm2.cpp
@@ -376,13 +376,7 @@ static inline unsigned int getBits(GetBitContext *s, int n) {
}
static inline void skipBits(GetBitContext *s, int n) {
- int reIndex, reCache;
-
- reIndex = s->index;
- reCache = 0;
-
- reCache = READ_LE_UINT32((const uint8 *)s->buffer + (reIndex >> 3)) >> (reIndex & 0x07);
- s->index = reIndex + n;
+ s->index += n;
}
#define BITS_LEFT(length, gb) ((length) - getBitsCount((gb)))