diff options
author | tobrun <tobrun.van.nuland@gmail.com> | 2019-02-07 13:36:21 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2019-02-07 15:41:54 +0100 |
commit | 7ad9f3450d038dd2f90f03b55dca51194bc1f587 (patch) | |
tree | 934becf731de338c4976a9839912427afd61f304 /platform/android/src/math/math.hpp | |
parent | 47fa19444e6c21326d99fbe38a3c25716e009971 (diff) | |
download | qtlocation-mapboxgl-7ad9f3450d038dd2f90f03b55dca51194bc1f587.tar.gz |
[android] - remove faulty conversion, explict casting for cluster API
Diffstat (limited to 'platform/android/src/math/math.hpp')
-rw-r--r-- | platform/android/src/math/math.hpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/platform/android/src/math/math.hpp b/platform/android/src/math/math.hpp deleted file mode 100644 index c6a8549f10..0000000000 --- a/platform/android/src/math/math.hpp +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include <mbgl/util/noncopyable.hpp> - -#include <jni/jni.hpp> - -namespace mbgl { -namespace android { -namespace math { - -class Math : private mbgl::util::noncopyable { -public: - static constexpr auto Name() { return "java/lang/Math"; }; - - static jni::jdouble rint(jni::JNIEnv& env, const jni::jdouble value) { - static auto& javaClass = jni::Class<Math>::Singleton(env); - static auto method = javaClass.GetStaticMethod<jni::jdouble (jni::jdouble)>(env, "rint"); - return javaClass.Call(env, method, value); - }; -}; - -void registerNative(jni::JNIEnv&); - -} // namespace math -} // namespace android -} // namespace mbgl
\ No newline at end of file |