summaryrefslogtreecommitdiff
path: root/src/mbgl/style
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-05-16 13:44:12 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-05-17 11:23:47 -0700
commit786707649a2efcddd24fb976150b044097d74219 (patch)
treebdeaffb1b923d0c8f10ec11f8119fd2dff2b7db8 /src/mbgl/style
parent63558e06ad4fbc33ad3bdec57dc0ead2b369a7b0 (diff)
downloadqtlocation-mapboxgl-786707649a2efcddd24fb976150b044097d74219.tar.gz
[core] Remove ambiguous get{Width,Height} accessors from style::Image
Diffstat (limited to 'src/mbgl/style')
-rw-r--r--src/mbgl/style/image.cpp8
-rw-r--r--src/mbgl/style/image_impl.hpp3
2 files changed, 0 insertions, 11 deletions
diff --git a/src/mbgl/style/image.cpp b/src/mbgl/style/image.cpp
index 3b35fa76f1..0cce32ab98 100644
--- a/src/mbgl/style/image.cpp
+++ b/src/mbgl/style/image.cpp
@@ -28,13 +28,5 @@ float Image::getPixelRatio() const {
return impl->pixelRatio;
}
-float Image::getWidth() const {
- return impl->getWidth();
-}
-
-float Image::getHeight() const {
- return impl->getHeight();
-}
-
} // namespace style
} // namespace mbgl
diff --git a/src/mbgl/style/image_impl.hpp b/src/mbgl/style/image_impl.hpp
index b088a23261..aa2cad8278 100644
--- a/src/mbgl/style/image_impl.hpp
+++ b/src/mbgl/style/image_impl.hpp
@@ -18,9 +18,6 @@ public:
// Whether this image should be interpreted as a signed distance field icon.
const bool sdf;
-
- float getWidth() const { return image.size.width / pixelRatio; }
- float getHeight() const { return image.size.height / pixelRatio; }
};
} // namespace style