summaryrefslogtreecommitdiff
path: root/platform/android/src/conversion/color.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/conversion/color.cpp')
-rw-r--r--platform/android/src/conversion/color.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/platform/android/src/conversion/color.cpp b/platform/android/src/conversion/color.cpp
deleted file mode 100644
index ce85943e61..0000000000
--- a/platform/android/src/conversion/color.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "color.hpp"
-
-namespace mbgl {
-namespace android {
-namespace conversion {
-
-Result<mbgl::Color> Converter<mbgl::Color, int>::operator()(jni::JNIEnv&, const int& color) const {
- float r = (color >> 16) & 0xFF;
- float g = (color >> 8) & 0xFF;
- float b = (color) & 0xFF;
- float a = (color >> 24) & 0xFF;
- return { mbgl::Color( r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f ) };
-}
-
-} // namespace conversion
-} // namespace style
-} // namespace mbgl