summaryrefslogtreecommitdiffstats
path: root/libs/ui
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-07-31 19:18:22 -0700
committerMathias Agopian <mathias@google.com>2013-07-31 20:10:10 -0700
commit87f9b877964b7d7db9b59ba45b73b4b1a779ecf8 (patch)
treedc2f14e9e49a01ad4fd13026c6f0edfa87714911 /libs/ui
parentb304edb0b1f45ec7d4f10cfbff1b91f50bca86e4 (diff)
downloadframeworks_native-87f9b877964b7d7db9b59ba45b73b4b1a779ecf8.zip
frameworks_native-87f9b877964b7d7db9b59ba45b73b4b1a779ecf8.tar.gz
frameworks_native-87f9b877964b7d7db9b59ba45b73b4b1a779ecf8.tar.bz2
remove unused code form GraphicBuffer
Change-Id: I0dd67f1f93f654331e8f17b55730931dbc695ca7
Diffstat (limited to 'libs/ui')
-rw-r--r--libs/ui/GraphicBuffer.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/libs/ui/GraphicBuffer.cpp b/libs/ui/GraphicBuffer.cpp
index 1f273e2..0ecd3d9 100644
--- a/libs/ui/GraphicBuffer.cpp
+++ b/libs/ui/GraphicBuffer.cpp
@@ -36,8 +36,7 @@ namespace android {
GraphicBuffer::GraphicBuffer()
: BASE(), mOwner(ownData), mBufferMapper(GraphicBufferMapper::get()),
- mInitCheck(NO_ERROR), mIndex(-1)
-{
+ mInitCheck(NO_ERROR) {
width =
height =
stride =
@@ -49,7 +48,7 @@ GraphicBuffer::GraphicBuffer()
GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h,
PixelFormat reqFormat, uint32_t reqUsage)
: BASE(), mOwner(ownData), mBufferMapper(GraphicBufferMapper::get()),
- mInitCheck(NO_ERROR), mIndex(-1)
+ mInitCheck(NO_ERROR)
{
width =
height =
@@ -65,7 +64,7 @@ GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h,
uint32_t inStride, native_handle_t* inHandle, bool keepOwnership)
: BASE(), mOwner(keepOwnership ? ownHandle : ownNone),
mBufferMapper(GraphicBufferMapper::get()),
- mInitCheck(NO_ERROR), mIndex(-1)
+ mInitCheck(NO_ERROR)
{
width = w;
height = h;
@@ -78,7 +77,7 @@ GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h,
GraphicBuffer::GraphicBuffer(ANativeWindowBuffer* buffer, bool keepOwnership)
: BASE(), mOwner(keepOwnership ? ownHandle : ownNone),
mBufferMapper(GraphicBufferMapper::get()),
- mInitCheck(NO_ERROR), mIndex(-1), mWrappedBuffer(buffer)
+ mInitCheck(NO_ERROR), mWrappedBuffer(buffer)
{
width = buffer->width;
height = buffer->height;
@@ -297,15 +296,6 @@ status_t GraphicBuffer::unflatten(
return NO_ERROR;
}
-
-void GraphicBuffer::setIndex(int index) {
- mIndex = index;
-}
-
-int GraphicBuffer::getIndex() const {
- return mIndex;
-}
-
// ---------------------------------------------------------------------------
}; // namespace android