table: Pit::erase accepts Entry* instead of shared_ptr
refs #3164
Change-Id: I9ff47c80865da42b09870c632707dffd78ed76b9
diff --git a/daemon/table/pit.hpp b/daemon/table/pit.hpp
index 1df3380..8e6c9f1 100644
--- a/daemon/table/pit.hpp
+++ b/daemon/table/pit.hpp
@@ -84,10 +84,10 @@
DataMatchResult
findAllDataMatches(const Data& data) const;
- /** \brief erases a PIT Entry
+ /** \brief deletes an entry
*/
void
- erase(shared_ptr<Entry> entry)
+ erase(Entry* entry)
{
this->erase(entry, true);
}
@@ -118,10 +118,8 @@
}
private:
- /** \brief erases a PIT Entry
- */
void
- erase(shared_ptr<Entry> pitEntry, bool canDeleteNte);
+ erase(Entry* pitEntry, bool canDeleteNte);
/** \brief finds or inserts a PIT entry for Interest
* \param interest the Interest; must be created with make_shared if allowInsert