Remove unused doxygen code
This commit is contained in:
parent
9deaa6ff24
commit
0483caaed5
3 changed files with 1 additions and 49 deletions
|
|
@ -81,7 +81,6 @@ class JAVA:public Language {
|
||||||
String *imclass_cppcasts_code; //C++ casts up inheritance hierarchies intermediary class code
|
String *imclass_cppcasts_code; //C++ casts up inheritance hierarchies intermediary class code
|
||||||
String *imclass_directors; // Intermediate class director code
|
String *imclass_directors; // Intermediate class director code
|
||||||
String *destructor_call; //C++ destructor call if any
|
String *destructor_call; //C++ destructor call if any
|
||||||
String *structuralComments;
|
|
||||||
String *destructor_throws_clause; //C++ destructor throws clause if any
|
String *destructor_throws_clause; //C++ destructor throws clause if any
|
||||||
|
|
||||||
// Director method stuff:
|
// Director method stuff:
|
||||||
|
|
@ -157,7 +156,6 @@ public:
|
||||||
imclass_cppcasts_code(NULL),
|
imclass_cppcasts_code(NULL),
|
||||||
imclass_directors(NULL),
|
imclass_directors(NULL),
|
||||||
destructor_call(NULL),
|
destructor_call(NULL),
|
||||||
structuralComments(NULL),
|
|
||||||
destructor_throws_clause(NULL),
|
destructor_throws_clause(NULL),
|
||||||
dmethods_seq(NULL),
|
dmethods_seq(NULL),
|
||||||
dmethods_table(NULL),
|
dmethods_table(NULL),
|
||||||
|
|
@ -448,7 +446,6 @@ public:
|
||||||
imclass_imports = NewString("");
|
imclass_imports = NewString("");
|
||||||
imclass_cppcasts_code = NewString("");
|
imclass_cppcasts_code = NewString("");
|
||||||
imclass_directors = NewString("");
|
imclass_directors = NewString("");
|
||||||
structuralComments = NewString("");
|
|
||||||
upcasts_code = NewString("");
|
upcasts_code = NewString("");
|
||||||
dmethods_seq = NewList();
|
dmethods_seq = NewList();
|
||||||
dmethods_table = NewHash();
|
dmethods_table = NewHash();
|
||||||
|
|
@ -587,10 +584,7 @@ public:
|
||||||
|
|
||||||
// Start writing out the module class file
|
// Start writing out the module class file
|
||||||
emitBanner(f_module);
|
emitBanner(f_module);
|
||||||
//Add any structural comments to the top
|
|
||||||
if(doxygen && structuralComments){
|
|
||||||
Printf(f_module, "%s", structuralComments);
|
|
||||||
}
|
|
||||||
if (package)
|
if (package)
|
||||||
Printf(f_module, "package %s;\n", package);
|
Printf(f_module, "package %s;\n", package);
|
||||||
|
|
||||||
|
|
@ -735,8 +729,6 @@ public:
|
||||||
module_imports = NULL;
|
module_imports = NULL;
|
||||||
Delete(module_class_modifiers);
|
Delete(module_class_modifiers);
|
||||||
module_class_modifiers = NULL;
|
module_class_modifiers = NULL;
|
||||||
Delete(structuralComments);
|
|
||||||
structuralComments = NULL;
|
|
||||||
Delete(imclass_imports);
|
Delete(imclass_imports);
|
||||||
imclass_imports = NULL;
|
imclass_imports = NULL;
|
||||||
Delete(imclass_cppcasts_code);
|
Delete(imclass_cppcasts_code);
|
||||||
|
|
@ -1546,22 +1538,6 @@ public:
|
||||||
return SWIG_OK;
|
return SWIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------
|
|
||||||
* doxygenComment()
|
|
||||||
* Simply translates the doxygen comment and places it into the appropriate
|
|
||||||
* file
|
|
||||||
* ------------------------------------------------------------------------ */
|
|
||||||
virtual int doxygenComment(Node *n){
|
|
||||||
if (doxygen && doxygenTranslator->hasDocumentation(n)){
|
|
||||||
String *doxygen_comments=doxygenTranslator->getDocumentation(n);
|
|
||||||
if(comment_creation_chatter)
|
|
||||||
Printf(structuralComments, "/* This was generated from doxygenComment() */");
|
|
||||||
Printv(structuralComments, Char(doxygen_comments), NIL);
|
|
||||||
Delete(doxygen_comments);
|
|
||||||
}
|
|
||||||
return SWIG_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
* constantWrapper()
|
* constantWrapper()
|
||||||
* Used for wrapping constants - #define or %constant.
|
* Used for wrapping constants - #define or %constant.
|
||||||
|
|
|
||||||
|
|
@ -138,9 +138,6 @@ int Dispatcher::emit_one(Node *n) {
|
||||||
ret = namespaceDeclaration(n);
|
ret = namespaceDeclaration(n);
|
||||||
} else if (strcmp(tag, "template") == 0) {
|
} else if (strcmp(tag, "template") == 0) {
|
||||||
ret = templateDeclaration(n);
|
ret = templateDeclaration(n);
|
||||||
}
|
|
||||||
else if (strcmp(tag, "doxycomm") == 0) {
|
|
||||||
ret = doxygenComment(n);
|
|
||||||
} else if (strcmp(tag, "lambda") == 0) {
|
} else if (strcmp(tag, "lambda") == 0) {
|
||||||
ret = lambdaDeclaration(n);
|
ret = lambdaDeclaration(n);
|
||||||
}
|
}
|
||||||
|
|
@ -309,9 +306,6 @@ int Dispatcher::usingDeclaration(Node *n) {
|
||||||
int Dispatcher::namespaceDeclaration(Node *n) {
|
int Dispatcher::namespaceDeclaration(Node *n) {
|
||||||
return defaultHandler(n);
|
return defaultHandler(n);
|
||||||
}
|
}
|
||||||
int Dispatcher::doxygenComment(Node *n){
|
|
||||||
return defaultHandler(n);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Allocators */
|
/* Allocators */
|
||||||
Language::Language():
|
Language::Language():
|
||||||
|
|
@ -2980,18 +2974,6 @@ int Language::usingDeclaration(Node *n) {
|
||||||
|
|
||||||
/* Stubs. Language modules need to implement these */
|
/* Stubs. Language modules need to implement these */
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
|
||||||
* Language::doxygenComment()
|
|
||||||
* ---------------------------------------------------------------------- */
|
|
||||||
int Language::doxygenComment(Node *n){
|
|
||||||
|
|
||||||
String *comment = Getattr(n, "comment");
|
|
||||||
Printf(stdout, "doxygenComment : %s\n", comment);
|
|
||||||
|
|
||||||
return SWIG_OK;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
* Language::constantWrapper()
|
* Language::constantWrapper()
|
||||||
* ---------------------------------------------------------------------- */
|
* ---------------------------------------------------------------------- */
|
||||||
|
|
|
||||||
|
|
@ -78,9 +78,6 @@ public:
|
||||||
virtual int typemapcopyDirective(Node *n);
|
virtual int typemapcopyDirective(Node *n);
|
||||||
virtual int typesDirective(Node *n);
|
virtual int typesDirective(Node *n);
|
||||||
|
|
||||||
/* Doxygen Comment */
|
|
||||||
virtual int doxygenComment(Node *n);
|
|
||||||
|
|
||||||
/* C/C++ parsing */
|
/* C/C++ parsing */
|
||||||
|
|
||||||
virtual int cDeclaration(Node *n);
|
virtual int cDeclaration(Node *n);
|
||||||
|
|
@ -161,9 +158,6 @@ public:
|
||||||
virtual int namespaceDeclaration(Node *n);
|
virtual int namespaceDeclaration(Node *n);
|
||||||
virtual int usingDeclaration(Node *n);
|
virtual int usingDeclaration(Node *n);
|
||||||
|
|
||||||
/* C/C++ parsing */
|
|
||||||
virtual int doxygenComment(Node *n);
|
|
||||||
|
|
||||||
/* Function handlers */
|
/* Function handlers */
|
||||||
|
|
||||||
virtual int functionHandler(Node *n);
|
virtual int functionHandler(Node *n);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue