diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-02-05 14:58:20 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-03-06 13:52:25 +0100 |
commit | fb44fc81bdab09d079ed27e22b86718627ded48b (patch) | |
tree | 2a4e7c80eb49624c0b548d7bd33401792da1faa4 /android/java | |
parent | 0151fe6c01367ef03a2ff282b90e32dd3785a7c2 (diff) | |
download | qtlocation-mapboxgl-fb44fc81bdab09d079ed27e22b86718627ded48b.tar.gz |
make Map::resize() private
they can only be called by View::resize
Diffstat (limited to 'android/java')
-rw-r--r-- | android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/NativeMapView.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/NativeMapView.java b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/NativeMapView.java index ffb439737e..a73a89d2d7 100644 --- a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/NativeMapView.java +++ b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/NativeMapView.java @@ -113,32 +113,6 @@ class NativeMapView { nativeSwapped(mNativeMapViewPtr); } - public void resize(int width, int height) { - resize(width, height, 1.0f); - } - - public void resize(int width, int height, float ratio) { - if (width < 0) { - throw new IllegalArgumentException("width cannot be negative."); - } - - if (height < 0) { - throw new IllegalArgumentException("height cannot be negative."); - } - - if (width > 65535) { - throw new IllegalArgumentException( - "width cannot be greater than 65535."); - } - - if (height > 65535) { - throw new IllegalArgumentException( - "height cannot be greater than 65535."); - } - - nativeResize(mNativeMapViewPtr, width, height, ratio); - } - public void resize(int width, int height, float ratio, int fbWidth, int fbHeight) { if (width < 0) { @@ -477,9 +451,6 @@ class NativeMapView { private native void nativeSwapped(long nativeMapViewPtr); private native void nativeResize(long nativeMapViewPtr, int width, - int height, float ratio); - - private native void nativeResize(long nativeMapViewPtr, int width, int height, float ratio, int fbWidth, int fbHeight); private native void nativeAddClass(long nativeMapViewPtr, String clazz); |