[Scummvm-cvs-logs] scummvm master -> cf76576035e37d2d55524ca3a7ade3af9804c85d

dreammaster dreammaster at scummvm.org
Sat Jun 6 03:11:04 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
cf76576035 SHERLOCK: Removed unused _savedStats


Commit: cf76576035e37d2d55524ca3a7ade3af9804c85d
    https://github.com/scummvm/scummvm/commit/cf76576035e37d2d55524ca3a7ade3af9804c85d
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-06-05T21:10:07-04:00

Commit Message:
SHERLOCK: Removed unused _savedStats

Changed paths:
    engines/sherlock/scene.cpp
    engines/sherlock/scene.h



diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp
index c377ab7..edb52f3 100644
--- a/engines/sherlock/scene.cpp
+++ b/engines/sherlock/scene.cpp
@@ -161,15 +161,11 @@ Scene *Scene::init(SherlockEngine *vm) {
 }
 
 Scene::Scene(SherlockEngine *vm): _vm(vm) {
-	// TODO: _savedStats isn't ever used?
 	_sceneStats = new bool *[SCENES_COUNT];
-	_savedStats = new bool *[SCENES_COUNT];
 	_sceneStats[0] = new bool[SCENES_COUNT * 65];
-	_savedStats[0] = new bool[SCENES_COUNT * 9];
 	Common::fill(&_sceneStats[0][0], &_sceneStats[0][SCENES_COUNT * 65], false);
 	for (int idx = 1; idx < SCENES_COUNT; ++idx) {
 		_sceneStats[idx] = _sceneStats[idx - 1] + 65;
-		_savedStats[idx] = _savedStats[idx - 1] + 9;
 	}
 	_currentScene = -1;
 	_goToScene = -1;
@@ -190,8 +186,6 @@ Scene::~Scene() {
 	freeScene();
 	delete[] _sceneStats[0];
 	delete[] _sceneStats;
-	delete[] _savedStats[0];
-	delete[] _savedStats;
 }
 
 void Scene::selectScene() {
diff --git a/engines/sherlock/scene.h b/engines/sherlock/scene.h
index 1555e37..e13c3a5 100644
--- a/engines/sherlock/scene.h
+++ b/engines/sherlock/scene.h
@@ -202,7 +202,6 @@ public:
 	int _currentScene;
 	int _goToScene;
 	bool **_sceneStats;
-	bool **_savedStats;
 	bool _walkedInScene;
 	int _version;
 	bool _lzwMode;






More information about the Scummvm-git-logs mailing list