Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Remove unneeded NativeLibrary.getInstance call
Browse files Browse the repository at this point in the history
  • Loading branch information
csadilek authored and pocmo committed Jul 13, 2018
1 parent 14c0507 commit f2ad615
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,18 @@ package mozilla.components.service.fxa
import com.sun.jna.Library
import com.sun.jna.Native
import com.sun.jna.Pointer
import com.sun.jna.NativeLibrary
import com.sun.jna.PointerType

@Suppress("FunctionNaming", "TooManyFunctions")
internal interface FxaClient : Library {
companion object {
private const val JNA_LIBRARY_NAME = "fxa_client"
private val JNA_NATIVE_LIB: Any
internal val INSTANCE: FxaClient

init {
System.loadLibrary("crypto")
System.loadLibrary("ssl")
System.loadLibrary("fxa_client")
JNA_NATIVE_LIB = NativeLibrary.getInstance(JNA_LIBRARY_NAME)
INSTANCE = Native.loadLibrary(JNA_LIBRARY_NAME, FxaClient::class.java) as FxaClient
}
}
Expand Down

0 comments on commit f2ad615

Please sign in to comment.