Skip to content

Commit

Permalink
TempAllocatorImpl: delete the unused destroy() method
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jul 8, 2024
1 parent 84d8037 commit 3644cda
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/native/glue/TempAllocatorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,3 @@ JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_TempAllocatorImpl_cr
TempAllocatorImpl *pResult = new TempAllocatorImpl(numBytes);
return reinterpret_cast<jlong> (pResult);
}

/*
* Class: com_github_stephengold_joltjni_TempAllocatorImpl
* Method: destroy
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_TempAllocatorImpl_destroy
(JNIEnv *, jclass, jlong va) {
const TempAllocatorImpl * const pAllocator
= reinterpret_cast<TempAllocatorImpl *> (va);
delete pAllocator;
}

0 comments on commit 3644cda

Please sign in to comment.