remove some dead code
parent
11d883f2a6
commit
96f4b45eab
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue