Skip to content

Commit f1209a4

Browse files
committed
BAGEL: Fix Some GCC Compiler Warnings By Removing Dead Code
1 parent 552e82c commit f1209a4

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

engines/bagel/dialogs/restore_dialog.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ class CBagRestoreDialog : public CBofDialog {
3838
private:
3939
ErrorCode RestoreAndClose();
4040

41-
// Data
42-
ST_SAVEDGAME_HEADER m_stGameInfo;
4341
CBofBmpButton *m_pButtons[NUM_RESTORE_BTNS];
4442
CBofScrollBar *m_pScrollBar = nullptr;
4543

engines/bagel/dialogs/save_dialog.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,10 @@ CBagSaveDialog::CBagSaveDialog() {
8383
LogInfo("Constructing CBagSaveDialog");
8484
g_nSelectedSlot = -1;
8585

86-
// Inits
8786
m_pListBox = nullptr;
8887
m_pEditText = nullptr;
8988
m_pScrollBar = nullptr;
9089
m_nSelectedItem = -1;
91-
BofMemSet(&m_stGameInfo, 0, sizeof(ST_SAVEDGAME_HEADER));
9290
m_pSaveBuf = nullptr;
9391
m_nBufSize = 0;
9492
m_pSavePalette = nullptr;

engines/bagel/dialogs/save_dialog.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ class CBagSaveDialog : public CBofDialog {
6161

6262
void SaveAndClose();
6363

64-
// Data
65-
//
66-
ST_SAVEDGAME_HEADER m_stGameInfo;
6764
CBofBmpButton *m_pButtons[NUM_BUTTONS];
6865
CBofScrollBar *m_pScrollBar;
6966

0 commit comments

Comments
 (0)