summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/phonebook/ContactFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Freeze/phonebook/ContactFactory.cpp')
-rw-r--r--cpp/demo/Freeze/phonebook/ContactFactory.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/cpp/demo/Freeze/phonebook/ContactFactory.cpp b/cpp/demo/Freeze/phonebook/ContactFactory.cpp
index 95388f6531a..cda6adc5df6 100644
--- a/cpp/demo/Freeze/phonebook/ContactFactory.cpp
+++ b/cpp/demo/Freeze/phonebook/ContactFactory.cpp
@@ -18,8 +18,7 @@ using namespace std;
using namespace Ice;
using namespace Freeze;
-ContactFactory::ContactFactory(const PhoneBookIPtr& phoneBook, const Freeze::EvictorPtr& evictor) :
- _phoneBook(phoneBook),
+ContactFactory::ContactFactory(const Freeze::EvictorPtr& evictor) :
_evictor(evictor)
{
}
@@ -28,7 +27,7 @@ ObjectPtr
ContactFactory::create(const string& type)
{
assert(type == "::Contact");
- return new ContactI(_phoneBook, _evictor);
+ return new ContactI(_evictor);
}
void
@@ -37,14 +36,5 @@ ContactFactory::destroy()
//
// Break cyclic object dependencies
//
- _phoneBook = 0;
_evictor = 0;
}
-
-void
-ContactFactory::initialize(const ObjectAdapterPtr&, const Identity& ident, const ObjectPtr& servant)
-{
- ContactIPtr contact = ContactIPtr::dynamicCast(servant);
- assert(contact);
- contact->setIdentity(ident);
-}