summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp17
1 files changed, 0 insertions, 17 deletions
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
@@ -6717,14 +6717,6 @@ Slice::Gen::Cpp11LocalObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
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
//
H << sp << nl << _dllMemberExport << "virtual ~" << name << "();";
@@ -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 << "();";