summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapStrictMode.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapStrictMode.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapStrictMode.java46
1 files changed, 0 insertions, 46 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapStrictMode.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapStrictMode.java
deleted file mode 100644
index c7f995964c..0000000000
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapStrictMode.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package com.mapbox.mapboxsdk;
-
-/**
- * Using this class you can enable a strict mode that will throw the {@link MapStrictModeException}
- * whenever the map would fail silently otherwise.
- */
-public class MapStrictMode {
- private static volatile boolean strictModeEnabled;
-
- /**
- * Set the strict mode that will throw the {@link MapStrictModeException}
- * whenever the map would fail silently otherwise.
- *
- * @param strictModeEnabled true to enable the strict mode, false otherwise
- */
- public static synchronized void setStrictModeEnabled(boolean strictModeEnabled) {
- MapStrictMode.strictModeEnabled = strictModeEnabled;
- }
-
- /**
- * Internal use. Called whenever the strict mode violation occurs.
- */
- public static void strictModeViolation(String message) {
- if (strictModeEnabled) {
- throw new MapStrictModeException(message);
- }
- }
-
- /**
- * Internal use. Called whenever the strict mode violation occurs.
- */
- public static void strictModeViolation(String message, Throwable throwable) {
- if (strictModeEnabled) {
- throw new MapStrictModeException(String.format("%s - %s", message, throwable));
- }
- }
-
- /**
- * Internal use. Called whenever the strict mode violation occurs.
- */
- public static void strictModeViolation(Throwable throwable) {
- if (strictModeEnabled) {
- throw new MapStrictModeException(String.format("%s", throwable));
- }
- }
-}