Some dead code cleanup, detected by clang++.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2725 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2013-05-07 18:53:21 +00:00
parent 8663dc96a3
commit 0929adc20d
13 changed files with 11 additions and 30 deletions

View File

@ -22,8 +22,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PackedBitArray::PackedBitArray(uInt32 length)
: size(length),
words(length / wordSize + 1)
: words(length / wordSize + 1)
{
bits = new uInt32[ words ];

View File

@ -38,9 +38,6 @@ class PackedBitArray
void toggle(uInt32 bit);
private:
// number of bits in the array:
uInt32 size;
// number of unsigned ints (size/wordSize):
uInt32 words;

View File

@ -43,9 +43,8 @@ class TogglePixelWidget : public ToggleWidget
void drawWidget(bool hilite);
private:
int _pixelColor;
unsigned int _numBits;
bool _swapBits;
int _pixelColor;
bool _swapBits;
};
#endif

View File

@ -88,7 +88,7 @@ class Driving : public Controller
// Pre-compute the events we care about based on given port
// This will eliminate test for left or right port in update()
Event::Type myCWEvent, myCCWEvent, myFireEvent,
myXAxisValue, myYAxisValue, myAxisMouseMotion;
myXAxisValue, myYAxisValue;
// Controller to emulate in normal mouse axis mode
int myControlID;

View File

@ -32,8 +32,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertiesSet::PropertiesSet(OSystem* osystem)
: myOSystem(osystem),
mySize(0)
: myOSystem(osystem)
{
load(myOSystem->propertiesFile());
}

View File

@ -134,9 +134,6 @@ class PropertiesSet
// The properties temporarily inserted by the program, which should
// be discarded when the program ends
PropsList myTempProps;
// The size of the properties bst (i.e. the number of properties in it)
uInt32 mySize;
};
#endif

View File

@ -37,8 +37,7 @@
StateManager::StateManager(OSystem* osystem)
: myOSystem(osystem),
myCurrentSlot(0),
myActiveMode(kOffMode),
myFrameCounter(0)
myActiveMode(kOffMode)
{
reset();
}

View File

@ -132,9 +132,6 @@ class StateManager
// Whether the manager is in record or playback mode
Mode myActiveMode;
// Current frame count (write full state every 60 frames)
int myFrameCounter;
// MD5 of the currently active ROM (either in movie or rewind mode)
string myMD5;

View File

@ -48,8 +48,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Thumbulator::Thumbulator(const uInt16* rom_ptr, uInt16* ram_ptr, bool traponfatal)
: rom(rom_ptr),
ram(ram_ptr),
copydata(0)
ram(ram_ptr)
{
trapFatalErrors(traponfatal);
}

View File

@ -121,16 +121,16 @@ class Thumbulator
private:
const uInt16* rom;
uInt16* ram;
Int32 copydata;
//Int32 copydata;
uInt32 halfadd;
uInt32 cpsr;
uInt32 reg_usr[16]; //User mode
//uInt32 reg_usr[16]; //User mode
uInt32 reg_sys[16]; //System mode
uInt32 reg_svc[16]; //Supervisor mode
//uInt32 reg_abt[16]; //Abort mode
//uInt32 reg_und[16]; //Undefined mode
uInt32 reg_irq[16]; //Interrupt mode
//uInt32 reg_irq[16]; //Interrupt mode
//uInt32 reg_fiq[16]; //Fast Interrupt mode
uInt32 mamcr;

View File

@ -35,8 +35,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CommandDialog::CommandDialog(OSystem* osystem, DialogContainer* parent)
: Dialog(osystem, parent, 0, 0, 16, 16),
mySelectedItem(0)
: Dialog(osystem, parent, 0, 0, 16, 16)
{
const GUI::Font& font = instance().font();
const int buttonWidth = font.getStringWidth("Right Diff B") + 20,

View File

@ -39,9 +39,6 @@ class CommandDialog : public Dialog
protected:
virtual void handleCommand(CommandSender* sender, int cmd, int data, int id);
private:
int mySelectedItem;
enum {
kSelectCmd = 'Csel',
kResetCmd = 'Cres',

View File

@ -53,7 +53,6 @@ class GameInfoDialog : public Dialog, public CommandSender
private:
TabWidget* myTab;
ButtonWidget* myCancelButton;
// Cartridge properties
EditTextWidget* myName;