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()
{} {}
ApplicationList* ApplicationList::Copy(Ptr<Node> n) const
{ // Copy this app list
ApplicationList* r = new ApplicationList(n);
return r;
}
void void
ApplicationList::Add(Application* a) ApplicationList::Add(Application* a)
{ {
a->Ref (); a->Ref ();
m_apps.push_back(a); 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 uint32_t ApplicationList::Count() const
{ {

View File

@ -38,8 +38,6 @@ public:
// Copy constructor not needed, default one is correct // Copy constructor not needed, default one is correct
virtual ~ApplicationList(); virtual ~ApplicationList();
// Inherited from Capabilty // 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 virtual void Add(Application*); // Add an already new'ed app
// Manage the list // Manage the list
template <typename T> T* AddCopy(const T& t) // Add a new application template <typename T> T* AddCopy(const T& t) // Add a new application