diff options
Diffstat (limited to 'src/hir_typeck')
| -rw-r--r-- | src/hir_typeck/static.hpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/hir_typeck/static.hpp b/src/hir_typeck/static.hpp index 0d9449b1..652bad50 100644 --- a/src/hir_typeck/static.hpp +++ b/src/hir_typeck/static.hpp @@ -84,17 +84,6 @@ public: /// \brief State manipulation /// \{ - template<typename T> - class NullOnDrop { - T*& ptr; - public: - NullOnDrop(T*& ptr): - ptr(ptr) - {} - ~NullOnDrop() { - ptr = nullptr; - } - }; NullOnDrop<const ::HIR::GenericParams> set_impl_generics(const ::HIR::GenericParams& gps) { set_impl_generics_raw(gps); return NullOnDrop<const ::HIR::GenericParams>(m_impl_generics); |
