summaryrefslogtreecommitdiff
path: root/src/mbgl/util/ptr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/util/ptr.hpp')
-rw-r--r--src/mbgl/util/ptr.hpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mbgl/util/ptr.hpp b/src/mbgl/util/ptr.hpp
deleted file mode 100644
index 87c4e9f7cf..0000000000
--- a/src/mbgl/util/ptr.hpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#pragma once
-
-#include <memory>
-#include <cassert>
-
-namespace mbgl {
-namespace util {
-
-template <typename T>
-class ptr : public ::std::shared_ptr<T> {
-public:
- template <typename... Args>
- ptr(Args &&... args)
- : ::std::shared_ptr<T>(::std::forward<Args>(args)...) {}
-
- auto operator->() const -> decltype(this->::std::shared_ptr<T>::operator->()) {
- assert(*this);
- return ::std::shared_ptr<T>::operator->();
- }
- auto operator*() const -> decltype(this->::std::shared_ptr<T>::operator*()) {
- assert(*this);
- return ::std::shared_ptr<T>::operator*();
- }
-};
-} // namespace util
-} // namespace mbgl