summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Object.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2019-06-21 16:28:55 -0400
committerBernard Normier <bernard@zeroc.com>2019-06-21 16:28:55 -0400
commitbb08ce501351bbfce3dd4361a665719add75c681 (patch)
tree3e191dc5f601fc4ec6f324d08cb085f80297f83f /cpp/src/Ice/Object.cpp
parentUnnecessary registerIceWS in Ice for MATLAB - Close #401 (diff)
downloadice-bb08ce501351bbfce3dd4361a665719add75c681.tar.bz2
ice-bb08ce501351bbfce3dd4361a665719add75c681.tar.xz
ice-bb08ce501351bbfce3dd4361a665719add75c681.zip
Removed outdated comment. Fixes #369.
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r--cpp/src/Ice/Object.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp
index d5509a24b5f..effce176db2 100644
--- a/cpp/src/Ice/Object.cpp
+++ b/cpp/src/Ice/Object.cpp
@@ -319,17 +319,12 @@ Ice::Object::_iceCheckMode(OperationMode expected, OperationMode received)
{
if(expected != received)
{
+ assert(expected != ICE_ENUM(OperationMode, Nonmutating)); // We never expect Nonmutating
if(expected == ICE_ENUM(OperationMode, Idempotent) && received == ICE_ENUM(OperationMode, Nonmutating))
{
//
// Fine: typically an old client still using the deprecated nonmutating keyword
//
-
- //
- // Note that expected == Nonmutating and received == Idempotent is not ok:
- // the server may still use the deprecated nonmutating keyword to detect updates
- // and the client should not break this (deprecated) feature.
- //
}
else
{