From 30004443d55d6597f9695bfcf54a6771bc296501 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Wed, 13 Jul 2016 12:06:46 -0400 Subject: Various C++ cleanups --- cpp/src/slice2cpp/Gen.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index e7fe5c368bb..f0e3453e41a 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -6716,14 +6716,6 @@ Slice::Gen::Cpp11LocalObjectVisitor::visitClassDefStart(const ClassDefPtr& p) H << nl << "public:" << sp; H.inc(); - // - // In C++, a nested type cannot have the same name as the enclosing type - // - if(p->name() != "PointerType") - { - H << nl << "using PointerType = ::std::shared_ptr<" << name << ">;"; - } - // // Out of line virtual dtor to avoid weak vtable // @@ -7614,15 +7606,6 @@ Slice::Gen::Cpp11ValueVisitor::visitClassDefStart(const ClassDefPtr& p) H << nl << "public:" << sp; H.inc(); - // - // In C++, a nested type cannot have the same name as the enclosing type - // - - if(p->name() != "PointerType") - { - H << nl << "using PointerType = ::std::shared_ptr<" << name << ">;"; - } - // Out of line dtor to avoid weak vtable H << sp; H << nl << _dllMemberExport << "virtual ~" << name << "();"; -- cgit v1.2.3