summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-10-21 12:42:03 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-10-21 15:17:10 +0200
commitc8dcec92470745f07c51074404ce4250428f2255 (patch)
tree5aa2ab3af50ae9ebb8a6aef4c422dda47e5f32ba /desktop
parent030891701c2f2d32b7d5848ddc955801560dd081 (diff)
android: remove the native DirectBufferAllocator
Change-Id: I41d25d288253f1b35c268ba70b8384812fa567e5
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/lokandroid.cxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/desktop/source/lib/lokandroid.cxx b/desktop/source/lib/lokandroid.cxx
index 1db794539a69..6142f5ab9885 100644
--- a/desktop/source/lib/lokandroid.cxx
+++ b/desktop/source/lib/lokandroid.cxx
@@ -316,32 +316,4 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_resetSe
pDocument->pClass->resetSelection(pDocument);
}
-/* DirectBufferAllocator */
-
-extern "C" SAL_JNI_EXPORT jobject JNICALL Java_org_libreoffice_kit_DirectBufferAllocator_allocateDirectBufferNative
- (JNIEnv* pEnv, jclass /*aClass*/, jint nSize)
-{
- jobject aBuffer = NULL;
-
- if (nSize > 0)
- {
- void* pMemory = malloc(nSize);
- if (pMemory != NULL)
- {
- aBuffer = pEnv->NewDirectByteBuffer(pMemory, nSize);
- if (aBuffer == NULL)
- {
- free(pMemory);
- }
- }
- }
- return aBuffer;
-}
-
-extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_DirectBufferAllocator_freeDirectBufferNative
- (JNIEnv* pEnv, jclass, jobject aBuffer)
-{
- free(pEnv->GetDirectBufferAddress(aBuffer));
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */