summaryrefslogtreecommitdiff
path: root/cpp/src/slice2php/Main.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-09-12 18:59:58 +0200
committerJose <jose@zeroc.com>2018-09-12 18:59:58 +0200
commitda6db38d91faa4f54cae1c65cc35abef7ad2fe4d (patch)
tree6d25c1a5e8fa163543474710bfc86a79f1c2e4f5 /cpp/src/slice2php/Main.cpp
parentMake test controllers layout more consistent (diff)
downloadice-da6db38d91faa4f54cae1c65cc35abef7ad2fe4d.tar.bz2
ice-da6db38d91faa4f54cae1c65cc35abef7ad2fe4d.tar.xz
ice-da6db38d91faa4f54cae1c65cc35abef7ad2fe4d.zip
Replace `php:internal` and `matlab:internal` by preprocessor macro
Close #202
Diffstat (limited to 'cpp/src/slice2php/Main.cpp')
-rw-r--r--cpp/src/slice2php/Main.cpp80
1 files changed, 0 insertions, 80 deletions
diff --git a/cpp/src/slice2php/Main.cpp b/cpp/src/slice2php/Main.cpp
index 90c8a761e5d..980f8853e8c 100644
--- a/cpp/src/slice2php/Main.cpp
+++ b/cpp/src/slice2php/Main.cpp
@@ -151,16 +151,6 @@ void
CodeVisitor::visitClassDecl(const ClassDeclPtr& p)
{
//
- // Do not generate any code for php:internal types, those are provided by
- // IcePHP C++ extension.
- //
- StringList metadata = p->getMetaData();
- if(find(metadata.begin(), metadata.end(), "php:internal") != metadata.end())
- {
- return;
- }
-
- //
// Handle forward declarations.
//
string scoped = p->scoped();
@@ -194,16 +184,6 @@ CodeVisitor::visitClassDecl(const ClassDeclPtr& p)
bool
CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
{
- //
- // Do not generate any code for php:internal types, those are provided by
- // IcePHP C++ extension.
- //
- StringList metadata = p->getMetaData();
- if(find(metadata.begin(), metadata.end(), "php:internal") != metadata.end())
- {
- return false;
- }
-
string scoped = p->scoped();
string name = getName(p);
string type = getTypeVar(p);
@@ -730,16 +710,6 @@ CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
bool
CodeVisitor::visitExceptionStart(const ExceptionPtr& p)
{
- //
- // Do not generate any code for php:internal types, those are provided by
- // IcePHP C++ extension.
- //
- StringList metadata = p->getMetaData();
- if(find(metadata.begin(), metadata.end(), "php:internal") != metadata.end())
- {
- return false;
- }
-
string scoped = p->scoped();
string name = getName(p);
string type = getTypeVar(p);
@@ -897,16 +867,6 @@ CodeVisitor::visitExceptionStart(const ExceptionPtr& p)
bool
CodeVisitor::visitStructStart(const StructPtr& p)
{
- //
- // Do not generate any code for php:internal types, those are provided by
- // IcePHP C++ extension.
- //
- StringList metadata = p->getMetaData();
- if(find(metadata.begin(), metadata.end(), "php:internal") != metadata.end())
- {
- return false;
- }
-
string scoped = p->scoped();
string name = getName(p);
string type = getTypeVar(p);
@@ -1003,16 +963,6 @@ CodeVisitor::visitStructStart(const StructPtr& p)
void
CodeVisitor::visitSequence(const SequencePtr& p)
{
- //
- // Do not generate any code for php:internal types, those are provided by
- // IcePHP C++ extension.
- //
- StringList metadata = p->getMetaData();
- if(find(metadata.begin(), metadata.end(), "php:internal") != metadata.end())
- {
- return;
- }
-
string type = getTypeVar(p);
TypePtr content = p->type();
@@ -1037,16 +987,6 @@ CodeVisitor::visitSequence(const SequencePtr& p)
void
CodeVisitor::visitDictionary(const DictionaryPtr& p)
{
- //
- // Do not generate any code for php:internal types, those are provided by
- // IcePHP C++ extension.
- //
- StringList metadata = p->getMetaData();
- if(find(metadata.begin(), metadata.end(), "php:internal") != metadata.end())
- {
- return;
- }
-
TypePtr keyType = p->keyType();
BuiltinPtr b = BuiltinPtr::dynamicCast(keyType);
@@ -1113,16 +1053,6 @@ CodeVisitor::visitDictionary(const DictionaryPtr& p)
void
CodeVisitor::visitEnum(const EnumPtr& p)
{
- //
- // Do not generate any code for php:internal types, those are provided by
- // IcePHP C++ extension.
- //
- StringList metadata = p->getMetaData();
- if(find(metadata.begin(), metadata.end(), "php:internal") != metadata.end())
- {
- return;
- }
-
string scoped = p->scoped();
string name = getName(p);
string type = getTypeVar(p);
@@ -1165,16 +1095,6 @@ CodeVisitor::visitEnum(const EnumPtr& p)
void
CodeVisitor::visitConst(const ConstPtr& p)
{
- //
- // Do not generate any code for php:internal types, those are provided by
- // IcePHP C++ extension.
- //
- StringList metadata = p->getMetaData();
- if(find(metadata.begin(), metadata.end(), "php:internal") != metadata.end())
- {
- return;
- }
-
string name = getName(p);
string type = getTypeVar(p);
string abs = getAbsolute(p, _ns);