[Scummvm-cvs-logs] scummvm master -> 9c5415b6ae63a685abdbb523bdb091b9e8feebb0

Strangerke Strangerke at scummvm.org
Sat Sep 17 19:17:05 CEST 2011


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:
9c5415b6ae CGE: Remove useless function


Commit: 9c5415b6ae63a685abdbb523bdb091b9e8feebb0
    https://github.com/scummvm/scummvm/commit/9c5415b6ae63a685abdbb523bdb091b9e8feebb0
Author: Strangerke (strangerke at scummvm.org)
Date: 2011-09-17T10:11:40-07:00

Commit Message:
CGE: Remove useless function

Thanks fuzzie for noticing it

Changed paths:
    engines/cge/vga13h.cpp
    engines/cge/vga13h.h



diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp
index 75c04e7..531c5f1 100644
--- a/engines/cge/vga13h.cpp
+++ b/engines/cge/vga13h.cpp
@@ -556,15 +556,6 @@ void Queue::clear() {
 	}
 }
 
-void Queue::forAll(void (*fun)(Sprite *)) {
-	Sprite *s = _head;
-	while (s) {
-		Sprite *n = s->_next;
-		fun(s);
-		s = n;
-	}
-}
-
 void Queue::append(Sprite *spr) {
 	if (_tail) {
 		spr->_prev = _tail;
diff --git a/engines/cge/vga13h.h b/engines/cge/vga13h.h
index 88353f4..01b1d0e 100644
--- a/engines/cge/vga13h.h
+++ b/engines/cge/vga13h.h
@@ -167,7 +167,6 @@ public:
 	void insert(Sprite *spr, Sprite *nxt);
 	void insert(Sprite *spr);
 	Sprite *remove(Sprite *spr);
-	void forAll(void (*fun)(Sprite *));
 	Sprite *first() {
 		return _head;
 	}






More information about the Scummvm-git-logs mailing list