Remove unnecessary code

This commit is contained in:
Jason Turner
2016-04-15 23:02:42 -06:00
parent 6fa83bca85
commit 1a42614441
5 changed files with 53 additions and 266 deletions

View File

@@ -243,16 +243,8 @@ namespace chaiscript
m_data.get().m_const_data_ptr = m_ptr.get().get();
}
Sentinel& operator=(Sentinel&&s) {
m_ptr = std::move(s.m_ptr);
m_data = std::move(s.m_data);
}
Sentinel(Sentinel &&s)
: m_ptr(std::move(s.m_ptr)),
m_data(std::move(s.m_data))
{
}
Sentinel& operator=(Sentinel&&s) = default;
Sentinel(Sentinel &&s) = default;
operator std::shared_ptr<T>&() const
{