changeset 791:0995fa233462

Remove useless state variable.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 Nov 2012 16:34:06 +0200
parents 40eb0327c427
children bee1f36efc16
files src/xs_player.h src/xs_sidplay1.cc src/xs_sidplay2.cc
diffstat 3 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/xs_player.h	Tue Nov 06 15:11:38 2012 +0200
+++ b/src/xs_player.h	Tue Nov 06 16:34:06 2012 +0200
@@ -33,8 +33,7 @@
     void        *internal;         /* SID-emulation internal engine data */
     XSEngine    *engine;           /* Selected player engine */
     gboolean    isError,
-                isPlaying,
-                isInitialized;
+                isPlaying;
     gint        currSong,          /* Current sub-tune */
                 lastTime;
 
--- a/src/xs_sidplay1.cc	Tue Nov 06 15:11:38 2012 +0200
+++ b/src/xs_sidplay1.cc	Tue Nov 06 16:34:06 2012 +0200
@@ -289,8 +289,6 @@
         return FALSE;
     }
 
-    state->isInitialized = TRUE;
-
     return sidEmuInitializeSong(*engine->emu, *engine->tune, state->currSong);
 }
 
@@ -317,7 +315,6 @@
 {
     XSSIDPlay1 *engine;
     assert(state);
-    state->isInitialized = FALSE;
 
     engine = (XSSIDPlay1 *) state->internal;
     if (!engine) return FALSE;
--- a/src/xs_sidplay2.cc	Tue Nov 06 15:11:38 2012 +0200
+++ b/src/xs_sidplay2.cc	Tue Nov 06 16:34:06 2012 +0200
@@ -465,8 +465,6 @@
         return FALSE;
     }
     
-    state->isInitialized = TRUE;
-
     return TRUE;
 }
 
@@ -492,8 +490,6 @@
 {
     XSSIDPlay2 *engine = (XSSIDPlay2 *) state->internal;
 
-    state->isInitialized = FALSE;
-
     if (!engine)
         return FALSE;