remove unused code form GraphicBuffer
Change-Id: I0dd67f1f93f654331e8f17b55730931dbc695ca7
diff --git a/include/ui/GraphicBuffer.h b/include/ui/GraphicBuffer.h
index 8184b7d..3cf628c 100644
--- a/include/ui/GraphicBuffer.h
+++ b/include/ui/GraphicBuffer.h
@@ -99,13 +99,16 @@
status_t unlock();
ANativeWindowBuffer* getNativeBuffer() const;
-
- void setIndex(int index);
- int getIndex() const;
// for debugging
static void dumpAllocationsToSystemLog();
+ // Flattenable protocol
+ size_t getFlattenedSize() const;
+ size_t getFdCount() const;
+ status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
+ status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
+
private:
~GraphicBuffer();
@@ -137,16 +140,8 @@
void free_handle();
- // Flattenable protocol
- size_t getFlattenedSize() const;
- size_t getFdCount() const;
- status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
- status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
-
-
GraphicBufferMapper& mBufferMapper;
ssize_t mInitCheck;
- int mIndex;
// If we're wrapping another buffer then this reference will make sure it
// doesn't get freed.