diff options
author | Jose <jose@zeroc.com> | 2019-04-05 17:20:48 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-04-05 17:21:46 +0200 |
commit | cd505b0f3b39927f7fe53adbe898920d3b27d9ee (patch) | |
tree | 7af7467d491a88be45404fd63a7dcd8397cc4eaa /cpp/src/slice2swift/SwiftUtil.cpp | |
parent | Remove public access from DefaultsAndOverrides (diff) | |
download | ice-cd505b0f3b39927f7fe53adbe898920d3b27d9ee.tar.bz2 ice-cd505b0f3b39927f7fe53adbe898920d3b27d9ee.tar.xz ice-cd505b0f3b39927f7fe53adbe898920d3b27d9ee.zip |
Proxy implementation updates
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r-- | cpp/src/slice2swift/SwiftUtil.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 4ea5414eeae..23e17b807ab 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -1789,15 +1789,6 @@ SwiftGenerator::writeProxyOperation(::IceUtilInternal::Output& out, const Operat // out << sp; out << nl; - - if(op->returnsData()) - { - out << "guard _impl.isTwoway else " << sb; - out << nl << "throw TwowayOnlyException(operation: \"" << op->name() << "\")"; - out << eb; - } - - out << nl; if(allOutParams.size() > 0) { out << "return "; @@ -1882,15 +1873,6 @@ SwiftGenerator::writeProxyAsyncOperation(::IceUtilInternal::Output& out, const O // Invoke // out << sp; - out << nl; - - if(op->returnsData()) - { - out << "guard _impl.isTwoway else " << sb; - out << nl << "return Promise(error: TwowayOnlyException(operation: \"" << op->name() << "\"))"; - out << eb; - } - out << nl << "return _impl._invokeAsync("; out.useCurrentPosAsIndent(); |