summaryrefslogtreecommitdiff
path: root/desktop/source/lib/lokandroid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/lib/lokandroid.cxx')
-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: */