[Scummvm-git-logs] scummvm master -> 0d005641fac16a0f8acc371e0dc1fea526e3ccb9

Strangerke noreply at scummvm.org
Tue May 7 20:55:27 UTC 2024


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

Summary:
340bf7ae57 BAGEL: Remove 3 useless assignments (CID 1544822)
0d005641fa BAGEL: Remove 2 unused functions in CBagParseObject (By side effect, fix CID 1544828)


Commit: 340bf7ae5764df8c992b4cdae9d427cfa5004401
    https://github.com/scummvm/scummvm/commit/340bf7ae5764df8c992b4cdae9d427cfa5004401
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-07T21:49:46+01:00

Commit Message:
BAGEL: Remove 3 useless assignments (CID 1544822)

Changed paths:
    engines/bagel/baglib/parse_object.cpp


diff --git a/engines/bagel/baglib/parse_object.cpp b/engines/bagel/baglib/parse_object.cpp
index edab917cf81..01a64488844 100644
--- a/engines/bagel/baglib/parse_object.cpp
+++ b/engines/bagel/baglib/parse_object.cpp
@@ -138,7 +138,7 @@ int CBagParseObject::getVectorFromStream(CBagIfstream &istr, CBagVector &vector)
 	vector._moveRate = 1;
 	ch = (char)istr.peek();
 	if (ch == ',') {
-		ch = (char)istr.getCh();
+		istr.getCh();
 		getStringFromStream(istr, str, "):@", true);
 		vector._moveRate = atoi(str);
 	}
@@ -146,7 +146,7 @@ int CBagParseObject::getVectorFromStream(CBagIfstream &istr, CBagVector &vector)
 	// Start-Stop index
 	ch = (char)istr.peek();
 	if (ch == '~') {
-		ch = (char)istr.getCh();
+		istr.getCh();
 		CBofRect r;
 		getRectFromStream(istr, r);
 		vector._sprStartIndex = r.left;
@@ -156,7 +156,7 @@ int CBagParseObject::getVectorFromStream(CBagIfstream &istr, CBagVector &vector)
 	// Start-Stop index
 	ch = (char)istr.peek();
 	if (ch == '@') {
-		ch = (char)istr.getCh();
+		istr.getCh();
 		getStringFromStream(istr, str, ")");
 		vector._changeRate = atoi(str);
 	}


Commit: 0d005641fac16a0f8acc371e0dc1fea526e3ccb9
    https://github.com/scummvm/scummvm/commit/0d005641fac16a0f8acc371e0dc1fea526e3ccb9
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-07T21:55:19+01:00

Commit Message:
BAGEL: Remove 2 unused functions in CBagParseObject (By side effect, fix CID 1544828)

Changed paths:
    engines/bagel/baglib/parse_object.h


diff --git a/engines/bagel/baglib/parse_object.h b/engines/bagel/baglib/parse_object.h
index 84ae43b7d7a..081230682d6 100644
--- a/engines/bagel/baglib/parse_object.h
+++ b/engines/bagel/baglib/parse_object.h
@@ -126,13 +126,6 @@ public:
 	int putbackStringOnStream(CBagIfstream &istr, const CBofString &sStr);
 
 	int parseAlertBox(CBagIfstream &istr, const char *sTitle, const char *sFile, int nLine);
-
-	virtual void *getDataStart() {
-		return &_bAttached;
-	}
-	virtual void *getDataEnd() {
-		return &_bAttached + sizeof(bool);
-	}
 };
 
 } // namespace Bagel




More information about the Scummvm-git-logs mailing list