remove some dead code

Mathieu Lacage 2007-05-10 08:03:07 +02:00
parent 11d883f2a6
commit 96f4b45eab
2 changed files with 1 additions and 20 deletions

View File

@ -49,29 +49,12 @@ ApplicationList::DoDispose (void)
ApplicationList::~ApplicationList()
{}
ApplicationList* ApplicationList::Copy(Ptr<Node> n) const
{ // Copy this app list
ApplicationList* r = new ApplicationList(n);
return r;
}
void
ApplicationList::Add(Application* a)
{
a->Ref ();
m_apps.push_back(a);
}
void ApplicationList::SetNode(Ptr<Node> n)
{
// Set the node pointer in each application
for (std::vector<Application *>::const_iterator i = m_apps.begin();
i != m_apps.end(); ++i)
{ // Set correct node pointer in each app
(*i)->SetNode(n);
}
}
}
uint32_t ApplicationList::Count() const
{

View File

@ -38,8 +38,6 @@ public:
// Copy constructor not needed, default one is correct
virtual ~ApplicationList();
// Inherited from Capabilty
virtual ApplicationList* Copy(Ptr<Node>) const;
virtual void SetNode(Ptr<Node>); // Sets the node for all apps
virtual void Add(Application*); // Add an already new'ed app
// Manage the list
template <typename T> T* AddCopy(const T& t) // Add a new application