diff options
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r-- | cpp/src/slice2swift/Gen.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp index 4afd58a87e7..31b05819d5f 100644 --- a/cpp/src/slice2swift/Gen.cpp +++ b/cpp/src/slice2swift/Gen.cpp @@ -860,10 +860,9 @@ Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p) out << nl << "public func uncheckedCast" << spar << ("prx: " + getUnqualified("Ice.ObjectPrx", swiftModule)) << ("type: " + prx + ".Protocol") - << ("facet: String? = nil") - << ("context: Context? = nil") << epar << " -> " << prx << "?"; + << ("facet: String? = nil") << epar << " -> " << prx << "?"; out << sb; - out << nl << "return " << prxI << ".uncheckedCast(prx: prx, facet: facet, context: context) as " << prxI << "?"; + out << nl << "return " << prxI << ".uncheckedCast(prx: prx, facet: facet) as " << prxI << "?"; out << eb; // |