summaryrefslogtreecommitdiff
path: root/include/mbgl/util/immutable.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/util/immutable.hpp')
-rw-r--r--include/mbgl/util/immutable.hpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/mbgl/util/immutable.hpp b/include/mbgl/util/immutable.hpp
index 1d6ff4079a..2cdce8772d 100644
--- a/include/mbgl/util/immutable.hpp
+++ b/include/mbgl/util/immutable.hpp
@@ -107,18 +107,9 @@ private:
std::shared_ptr<const T> ptr;
template <class S> friend class Immutable;
- template <class S> friend class EnableImmutableFromThis;
template <class S, class U> friend Immutable<S> staticImmutableCast(const Immutable<U>&);
};
-template <class T>
-class EnableImmutableFromThis : public std::enable_shared_from_this<const T> {
-public:
- Immutable<T> immutableFromThis() const {
- return Immutable<T>(this->shared_from_this());
- }
-};
-
template <class S, class U>
Immutable<S> staticImmutableCast(const Immutable<U>& u) {
return Immutable<S>(std::static_pointer_cast<const S>(u.ptr));