diff options
Diffstat (limited to 'cpp/demo/Ice/pickle/ServantFactory.cpp')
-rw-r--r-- | cpp/demo/Ice/pickle/ServantFactory.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cpp/demo/Ice/pickle/ServantFactory.cpp b/cpp/demo/Ice/pickle/ServantFactory.cpp index fb162dbe0db..fd34ec210a7 100644 --- a/cpp/demo/Ice/pickle/ServantFactory.cpp +++ b/cpp/demo/Ice/pickle/ServantFactory.cpp @@ -17,11 +17,6 @@ using namespace std; Ice::ObjectPtr ServantFactory::create(const string& type) { - if (type == "::Persistent") - { - return new Persistent; - } - - assert(false); - return 0; + assert(type == "::Persistent"); + return new Persistent; } |