Remove Boxed_Value dependencies, they are not a solution

This commit is contained in:
Jason Turner
2012-05-21 08:18:33 -06:00
parent 654f7e6b01
commit ef46d1bf60
3 changed files with 0 additions and 23 deletions

View File

@@ -71,7 +71,6 @@ namespace chaiscript
void *m_data_ptr;
const void *m_const_data_ptr;
bool m_is_ref;
std::vector<boost::shared_ptr<Data> > m_dependencies;
};
struct Object_Data
@@ -242,24 +241,6 @@ namespace chaiscript
return !is_ref();
}
void clear_dependencies()
{
m_data->m_dependencies.clear();
}
template<typename InItr>
void add_dependencies(InItr begin, const InItr &end)
{
while (begin != end)
{
if (begin->m_data != m_data)
{
m_data->m_dependencies.push_back(begin->m_data);
}
++begin;
}
}
void *get_ptr() const
{
return m_data->m_data_ptr;