diff options
author | Povilas Kanapickas <povilas.kanapickas@gmail.com> | 2010-10-18 15:52:09 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-18 15:52:09 +0100 |
commit | 3eb979df547419645bb3c824f1dc4a5fdc8d0250 (patch) | |
tree | c23e118a69931c1bb8a0c8397f3753256e31c17a /autodoc/source/parser/cpp | |
parent | tweak this for AIX (diff) | |
download | core-3eb979df547419645bb3c824f1dc4a5fdc8d0250.tar.gz core-3eb979df547419645bb3c824f1dc4a5fdc8d0250.zip |
remove non-compiled code
Diffstat (limited to 'autodoc/source/parser/cpp')
-rw-r--r-- | autodoc/source/parser/cpp/all_toks.hxx | 5 | ||||
-rw-r--r-- | autodoc/source/parser/cpp/pe_class.cxx | 9 | ||||
-rw-r--r-- | autodoc/source/parser/cpp/pe_class.hxx | 7 | ||||
-rw-r--r-- | autodoc/source/parser/cpp/pe_expr.cxx | 27 | ||||
-rw-r--r-- | autodoc/source/parser/cpp/pe_file.hxx | 17 |
5 files changed, 6 insertions, 59 deletions
diff --git a/autodoc/source/parser/cpp/all_toks.hxx b/autodoc/source/parser/cpp/all_toks.hxx index 485588d5fbc1..aba0aaad55d4 100644 --- a/autodoc/source/parser/cpp/all_toks.hxx +++ b/autodoc/source/parser/cpp/all_toks.hxx @@ -184,7 +184,7 @@ class Tok_UnblockMacro : public ::TextToken -#if 0 // just for viewing: +/* just for viewing: class Tok_TypeKey : public cpp::Token // file-><type-PE> class Tok_Template : public cpp::Token // file class Tok_Namespace : public cpp::Token // file @@ -211,8 +211,7 @@ class Tok_Operator : public cpp::Token // expression class Tok_Ignore : public cpp::Token class Tok_ContextChanger : public cpp::Token -#endif // 0 - +*/ } // namespace cpp diff --git a/autodoc/source/parser/cpp/pe_class.cxx b/autodoc/source/parser/cpp/pe_class.cxx index 0a1d244b8578..1b4910aff9be 100644 --- a/autodoc/source/parser/cpp/pe_class.cxx +++ b/autodoc/source/parser/cpp/pe_class.cxx @@ -213,15 +213,6 @@ PE_Class::Setup_StatusFunctions() SEMPARSE_CREATE_STATUS(PE_Class, inProtection, Hdl_SyntaxError); SEMPARSE_CREATE_STATUS(PE_Class, afterDecl, On_afterDecl_Return2Type); -#if 0 - static F_Tok stateF_inFriend[] = { On_inFriend_class, - On_inFriend_struct, - On_inFriend_union }; - // Default: On_inFriend_Function - static INT16 stateT_inFriend[] = { Tid_class, - Tid_struct, - Tid_union }; -#endif // 0 } void diff --git a/autodoc/source/parser/cpp/pe_class.hxx b/autodoc/source/parser/cpp/pe_class.hxx index 737bb3a4111d..f14d8ce97b80 100644 --- a/autodoc/source/parser/cpp/pe_class.hxx +++ b/autodoc/source/parser/cpp/pe_class.hxx @@ -219,7 +219,7 @@ PE_Class::Result_FirstNameSegment() const } // namespace cpp -#if 0 // Branches +/* // Branches class struct union -> Class @@ -247,10 +247,7 @@ virtual using -> Using Declaration - - -#endif // 0 - +*/ #endif diff --git a/autodoc/source/parser/cpp/pe_expr.cxx b/autodoc/source/parser/cpp/pe_expr.cxx index 1d9b18dacadf..0594e57077c5 100644 --- a/autodoc/source/parser/cpp/pe_expr.cxx +++ b/autodoc/source/parser/cpp/pe_expr.cxx @@ -55,33 +55,6 @@ void PE_Expression::Call_Handler( const cpp::Token & i_rTok ) { pStati->Cur().Call_Handler(i_rTok.TypeId(), i_rTok.Text()); - -#if 0 - switch (i_rTok.TypeId()) - { - case Tid_SwBracket_Left: SetTokenResult(done, stay); - nBracketCounter++; - bBlockOpened = true; - break; - case Tid_SwBracket_Right: SetTokenResult(done, stay); - nBracketCounter--; - break; - case Tid_Semicolon: if (nBracketCounter == 0) - SetTokenResult(done, pop_success); - else - SetTokenResult(done, stay); - break; - default: - if ( bBlockOpened AND nBracketCounter == 0 ) - { - SetTokenResult(not_done, pop_success); - } - else - { - SetTokenResult(done, stay); - } - } // end switch -#endif // 0 } void diff --git a/autodoc/source/parser/cpp/pe_file.hxx b/autodoc/source/parser/cpp/pe_file.hxx index eb88a311e558..86f10e5443e8 100644 --- a/autodoc/source/parser/cpp/pe_file.hxx +++ b/autodoc/source/parser/cpp/pe_file.hxx @@ -51,12 +51,6 @@ namespace cpp { class PE_Defines; class PE_Ignore; -#if 0 -class PE_Template; -class PE_Extern; -#endif - - class PE_File : public Cpp_PE { public: @@ -83,9 +77,6 @@ class PE_File : public Cpp_PE typedef SubPe< PE_File, PE_TemplateTop> SP_Template; typedef SubPe< PE_File, PE_Defines> SP_Defines; typedef SubPe< PE_File, PE_Ignore > SP_Ignore; -#if 0 - typedef SubPe< PE_File, PE_Using> SP_Using; -#endif // 0 typedef SubPeUse< PE_File, PE_Namespace> SPU_Namespace; typedef SubPeUse< PE_File, PE_Typedef> SPU_Typedef; @@ -136,9 +127,6 @@ class PE_File : public Cpp_PE Dyn<SP_Defines> pSpDefs; Dyn<SP_Ignore> pSpIgnore; -#if 0 - SP_Using aSpUsing; -#endif // 0 Dyn<SPU_Namespace> pSpuNamespace; Dyn<SPU_Typedef> pSpuTypedef; @@ -159,7 +147,7 @@ class PE_File : public Cpp_PE -#if 0 // Branches +/* // Branches namespace -> Named Namespace declaration @@ -202,8 +190,7 @@ using -> Using-Declaration -> Using-Directive -#endif // 0 - +*/ #endif |