git repos / blockattack-game

commit 63763043

sago007 · 2016-04-09 16:45
63763043173c71a865a31f8e60928f2f2d696c46 patch · browse files
parent 877b7c650287cca2f4bfe1a5772e602dd8d12e6b

Removed unused code

Changed files

M source/code/BlockGame.cpp before
diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp index 71aadd2..9dc79f2 100644 --- a/source/code/BlockGame.cpp +++ b/source/code/BlockGame.cpp
@@ -34,7 +34,7 @@ http://blockattack.net
#include "BlockGame.hpp"
#include "puzzlehandler.hpp"
#include "stageclearhandler.hpp"
-#include <boost/lexical_cast.hpp>
+#include <sstream>
using namespace std;
@@ -133,8 +133,6 @@ BlockGame::~BlockGame() {
}
void BlockGame::setGameSpeed(int globalSpeedLevel) {
- boost::format f("%1%");
- f % globalSpeedLevel;
switch (globalSpeedLevel) {
case 0:
baseSpeed=0.5;
@@ -158,8 +156,6 @@ void BlockGame::setGameSpeed(int globalSpeedLevel) {
}
void BlockGame::setHandicap(int globalHandicap) {
- boost::format f("%1%");
- f % globalHandicap;
handicap=1000*((int)globalHandicap);
}