From d4d8f07bf3ef698bdfe3d89b67ccc3fbdcf4d588 Mon Sep 17 00:00:00 2001
From: gus <gus_512@hotmail.com>
Date: Tue, 12 Aug 2014 13:32:56 +0200
Subject: [PATCH] clean up

---
 apps/opencs/view/render/pagedworldspacewidget.cpp | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/apps/opencs/view/render/pagedworldspacewidget.cpp b/apps/opencs/view/render/pagedworldspacewidget.cpp
index 9f9787352..87737b849 100644
--- a/apps/opencs/view/render/pagedworldspacewidget.cpp
+++ b/apps/opencs/view/render/pagedworldspacewidget.cpp
@@ -130,20 +130,6 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
                 }
                 pixelBuffer->unlock();
                 texture->load();
-                /*Ogre::HardwarePixelBufferSharedPtr buffer = texture->getBuffer();
-                buffer->lock(Ogre::HardwareBuffer::HBL_DISCARD);
-                const Ogre::PixelBox &pb = buffer->getCurrentLock();
-
-                /// Update the contents of pb here
-                /// Image data starts at pb.data and has format pb.format
-                /// Here we assume data.format is PF_X8R8G8B8 so we can address pixels as uint32.
-                uchar *data = static_cast<uchar*>(pb.data);
-                memcpy(data, img.bits(), buffer->getSizeInBytes());
-                std::cout << buffer->getSizeInBytes() << std::endl << img.byteCount();
-
-
-                /// Unlock the buffer again (frees it for use by the GPU)
-                buffer->unlock();*/
             }
 
             Ogre::MaterialPtr material;