From 701f7d5707f0415a4469eba4d2f30cb2daf7e570 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 7 Jun 2014 09:48:53 +0200 Subject: TEENAGENT: Remove dead code: s cannot be null at this point --- engines/teenagent/actor.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/engines/teenagent/actor.cpp b/engines/teenagent/actor.cpp index a4df43a5fe..5c796c13ab 100644 --- a/engines/teenagent/actor.cpp +++ b/engines/teenagent/actor.cpp @@ -134,10 +134,6 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi default: return Common::Rect(); } - if (s == NULL) { - warning("no surface, skipping"); - return Common::Rect(); - } Common::Rect dirty; Common::Rect clip(0, 0, s->w, s->h); -- cgit v1.2.3