From bf712f373879f1409213ad8cb985341ed53fd056 Mon Sep 17 00:00:00 2001
From: Jonas Kulla <Nyocurio@gmail.com>
Date: Sun, 8 Dec 2013 12:57:46 +0100
Subject: [PATCH] Graphics: Remove useless and confusing function

---
 src/graphics.cpp | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/graphics.cpp b/src/graphics.cpp
index 3039ef5..c5dec1d 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -511,18 +511,11 @@ struct GraphicsPrivate
 		          threadData->config.smoothScaling ? FBO::Linear : FBO::Nearest);
 	}
 
-	/* Blits currently bound read FBO to screen (upside-down) */
-	void blitToScreen()
-	{
-		FBO::unbind(FBO::Draw);
-		FBO::clear();
-		blitBufferFlippedScaled();
-	}
-
 	void redrawScreen()
 	{
 		screen.composite();
-		blitToScreen();
+		FBO::clear();
+		blitBufferFlippedScaled();
 
 		swapGLBuffer();
 	}
@@ -644,7 +637,9 @@ void Graphics::transition(int duration,
 
 		/* Then blit it flipped and scaled to the screen */
 		FBO::bind(p->transBuffer.fbo, FBO::Read);
-		p->blitToScreen();
+		FBO::unbind(FBO::Draw);
+		FBO::clear();
+		p->blitBufferFlippedScaled();
 
 		p->swapGLBuffer();
 	}