summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/SwiftUtil.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-04-05 17:20:48 +0200
committerJose <jose@zeroc.com>2019-04-05 17:21:46 +0200
commitcd505b0f3b39927f7fe53adbe898920d3b27d9ee (patch)
tree7af7467d491a88be45404fd63a7dcd8397cc4eaa /cpp/src/slice2swift/SwiftUtil.cpp
parentRemove public access from DefaultsAndOverrides (diff)
downloadice-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.cpp18
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();