From a7a1e11a3d1f32e71ea24596fec6645ecd669419 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 19 Jan 2017 16:21:07 -0500 Subject: java:UserException metadata for both local and remote operations --- cpp/src/Slice/JavaUtil.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'cpp/src/Slice/JavaUtil.cpp') diff --git a/cpp/src/Slice/JavaUtil.cpp b/cpp/src/Slice/JavaUtil.cpp index 7441b60aca4..3c6d0ece494 100644 --- a/cpp/src/Slice/JavaUtil.cpp +++ b/cpp/src/Slice/JavaUtil.cpp @@ -227,18 +227,6 @@ public: virtual void visitOperation(const OperationPtr& p) { - if(p->hasMetaData("UserException")) - { - ClassDefPtr cl = ClassDefPtr::dynamicCast(p->container()); - if(!cl->isLocal()) - { - ostringstream os; - os << "ignoring invalid metadata `UserException': directive applies only to local operations " - << "but enclosing " << (cl->isInterface() ? "interface" : "class") << " `" << cl->name() - << "' is not local"; - emitWarning(p->file(), p->line(), os.str()); - } - } StringList metaData = getMetaData(p); TypePtr returnType = p->returnType(); if(!metaData.empty()) -- cgit v1.2.3