summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/LibraryI.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-06-25 12:25:59 -0400
committerDwayne Boone <dwayne@zeroc.com>2007-06-25 12:25:59 -0400
commit7b39f97fffeaa23bd6fd73864fee60b97db52f97 (patch)
tree7495455a9a5d83d26238d085117f6cd44e2dede2 /cpp/demo/Freeze/library/LibraryI.cpp
parentbug 2265 (diff)
downloadice-7b39f97fffeaa23bd6fd73864fee60b97db52f97.tar.bz2
ice-7b39f97fffeaa23bd6fd73864fee60b97db52f97.tar.xz
ice-7b39f97fffeaa23bd6fd73864fee60b97db52f97.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1968 - Remove code to support old Sun compilers
Diffstat (limited to 'cpp/demo/Freeze/library/LibraryI.cpp')
-rw-r--r--cpp/demo/Freeze/library/LibraryI.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp
index 8a950d3b95c..5ae10812f9c 100644
--- a/cpp/demo/Freeze/library/LibraryI.cpp
+++ b/cpp/demo/Freeze/library/LibraryI.cpp
@@ -107,9 +107,7 @@ BookI::returnBook(const Ice::Current&)
rentalCustomerName.clear();;
}
-// Needs to be extern for the Sun C++ 5.4 compiler
-//
-extern Ice::Identity
+Ice::Identity
createBookIdentity(const string& isbn)
{
//
@@ -157,17 +155,7 @@ LibraryI::createBook(const Demo::BookDescription& description, const Ice::Curren
{
IceUtil::Mutex::Lock lock(*this);
-#if defined(__SUNPRO_CC)
- //
- // Strange CC bug (only when optimizing and raising BookExistsException)
- //
- BookPrx book;
- {
- book = IsbnToBook(c.adapter)(description.isbn);
- }
-#else
BookPrx book = IsbnToBook(c.adapter)(description.isbn);
-#endif
try
{
book->ice_ping();