summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r--cpp/src/Slice/Parser.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index a19bea957d3..b9ac3797d14 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -4347,21 +4347,6 @@ Slice::Operation::setExceptionList(const ExceptionList& el)
_throws = el;
//
- // Local interfaces and classes cannot have an exception specification.
- //
- if(el.size() != 0) {
- ClassDefPtr parent = ClassDefPtr::dynamicCast(container());
- assert(parent);
- if(parent->isLocal())
- {
- string msg = "operation `" + name() + "' cannot have a throws clause because it is an operation on a ";
- msg += parent->kindOf();
- _unit->error(msg);
- return;
- }
- }
-
- //
// Check that no exception occurs more than once in the throws clause.
//
ExceptionList uniqueExceptions = el;