diff options
| author | Ivo van Dongen <info@ivovandongen.nl> | 2017-03-22 15:05:03 +0200 |
|---|---|---|
| committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-03-28 15:44:22 +0300 |
| commit | fa7489fb7ea8ec85cb746e0bc497518d72c638b9 (patch) | |
| tree | 477c100890466ca0093af9e101554dca530f9ae8 /platform/android/src/geometry/feature.cpp | |
| parent | f70f604e5b99062a24764716ccdeda64c36320be (diff) | |
| download | qtlocation-mapboxgl-fa7489fb7ea8ec85cb746e0bc497518d72c638b9.tar.gz | |
[android] geojson conversion optimisation
Diffstat (limited to 'platform/android/src/geometry/feature.cpp')
| -rw-r--r-- | platform/android/src/geometry/feature.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/platform/android/src/geometry/feature.cpp b/platform/android/src/geometry/feature.cpp deleted file mode 100644 index 5355d50ab7..0000000000 --- a/platform/android/src/geometry/feature.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "feature.hpp" - -namespace mbgl { -namespace android { - -jni::Object<Feature> Feature::fromGeometry(jni::JNIEnv& env, jni::Object<Geometry> geometry, jni::Object<JsonObject> properties, jni::String id) { - static auto method = Feature::javaClass.GetStaticMethod<jni::Object<Feature> (jni::Object<Geometry>, jni::Object<JsonObject>, jni::String)>(env, "fromGeometry"); - return Feature::javaClass.Call(env, method, geometry, properties, id); -} - -void Feature::registerNative(jni::JNIEnv& env) { - // Lookup the class - Feature::javaClass = *jni::Class<Feature>::Find(env).NewGlobalRef(env).release(); -} - -jni::Class<Feature> Feature::javaClass; - - -} // namespace android -} // namespace mbgl
\ No newline at end of file |
