summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/BookFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Freeze/library/BookFactory.cpp')
-rw-r--r--cpp/demo/Freeze/library/BookFactory.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/cpp/demo/Freeze/library/BookFactory.cpp b/cpp/demo/Freeze/library/BookFactory.cpp
deleted file mode 100644
index e01d07e19b3..00000000000
--- a/cpp/demo/Freeze/library/BookFactory.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <BookFactory.h>
-
-using namespace std;
-
-BookFactory::BookFactory(const LibraryIPtr& library) :
- _library(library)
-{
-}
-
-Ice::ObjectPtr
-#ifndef NDEBUG
-BookFactory::create(const string& type)
-#else
-BookFactory::create(const string&)
-#endif
-{
- assert(_library);
- assert(type == "::Demo::Book");
- return new BookI(_library);
-}
-
-void
-BookFactory::destroy()
-{
- //
- // Break cyclic object dependencies
- //
- _library = 0;
-}