[Scummvm-git-logs] scummvm master -> 05b7b22b7911e7c48093d88e23ceb997e023edd6

Strangerke noreply at scummvm.org
Wed May 29 21:29:56 UTC 2024


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:
05b7b22b79 BAGEL: remove useless code in CBagExpression::setInfo and a useless include master_win


Commit: 05b7b22b7911e7c48093d88e23ceb997e023edd6
    https://github.com/scummvm/scummvm/commit/05b7b22b7911e7c48093d88e23ceb997e023edd6
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-29T22:29:50+01:00

Commit Message:
BAGEL: remove useless code in CBagExpression::setInfo and a useless include master_win

Changed paths:
    engines/bagel/baglib/expression.cpp
    engines/bagel/baglib/master_win.h


diff --git a/engines/bagel/baglib/expression.cpp b/engines/bagel/baglib/expression.cpp
index 126251fdb1a..39655002cbd 100644
--- a/engines/bagel/baglib/expression.cpp
+++ b/engines/bagel/baglib/expression.cpp
@@ -563,11 +563,6 @@ ParseCodes CBagExpression::setInfo(CBagIfstream &istr) {
 	buffer[0] = 0;
 	CBofString tmpStr(buffer, 256);
 
-	char errBuffer[256];
-	Common::strcpy_s(errBuffer, "Error in expression ");
-	// CHECKME: Should we put this string in a debugC at the end of the function? (Currently unused)
-	CBofString errStr(errBuffer, 256);
-
 	ParseCodes parseCode = PARSING_DONE;
 	bool doneFl = false;
 
@@ -604,7 +599,6 @@ ParseCodes CBagExpression::setInfo(CBagIfstream &istr) {
 				getOperatorFromStream(istr, curOper);
 				if (curOper == OP_NONE) {
 					parseCode = UNKNOWN_TOKEN;
-					errStr = "Bad operator:";
 					break;
 				}
 				_operList.addToTail(curOper);
diff --git a/engines/bagel/baglib/master_win.h b/engines/bagel/baglib/master_win.h
index a0e5a595599..c2c423b4bbc 100644
--- a/engines/bagel/baglib/master_win.h
+++ b/engines/bagel/baglib/master_win.h
@@ -30,7 +30,6 @@
 #include "bagel/boflib/gui/window.h"
 #include "bagel/boflib/sound.h"
 #include "bagel/baglib/object.h"
-#include "bagel/dialogs/save_dialog.h"
 #include "bagel/baglib/save_game_file.h"
 #include "bagel/baglib/var.h"
 




More information about the Scummvm-git-logs mailing list