Nuke nearly all of the unused local variables

This commit is contained in:
2014-04-15 02:54:16 -04:00
parent e73d14e0ee
commit 2b924101d6
22 changed files with 17 additions and 95 deletions

View File

@@ -18,12 +18,6 @@
// TODO: Don't use the resource manager
#include <CoreServices/CoreServices.h>
static int32_t extract_long(char* ptr) {
int32_t l = *(int32_t*) ptr;
flip_long(&l);
return l;
}
static int16_t extract_word(char* ptr) {
int16_t s = *(int16_t*) ptr;
flip_short(&s);
@@ -200,7 +194,6 @@ rectangle loadFromPictResource(Handle resHandle, unsigned char*& pixelStore) {
ptr_guard<unsigned char> pixels(pixelStore, pixelStore + picDataSize);
// Then 4 reserved bytes
picData += 4;
int pixMapType = 0;
legacy::Rect bounds;
// Now we need to skip any superfluous opcodes until we get to pixel data - opcode 90, 91, 98, or 99
// We're assuming it's stored as pixel data, so any other opcodes will just be ignored