Skip to content

Commit

Permalink
Removing obsolete functions
Browse files Browse the repository at this point in the history
In the translator_report.txt we find quite a few obsolete functions
- Corrected marking of obsolete functions for functions that have a default implementation and thus are not obsolete
- Removing obsolete functions
  • Loading branch information
albert-github committed Feb 3, 2022
1 parent 079495c commit f290f81
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 256 deletions.
9 changes: 7 additions & 2 deletions doc/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,13 @@ def __collectPublicMethodPrototypes(self, tokenIterator):
assert False

assert(uniPrototype not in self.prototypeDic)
# Insert new dictionary item.
self.prototypeDic[uniPrototype] = prototype
# Insert new dictionary item, unless they have a default in translator.h
if (not (prototype=="virtual QCString latexDocumentPost()" or
prototype=="virtual QCString latexDocumentPre()" or
prototype=="virtual QCString latexCommandName()" or
prototype=="virtual QCString latexFont()" or
prototype=="virtual QCString latexFontenc()")):
self.prototypeDic[uniPrototype] = prototype
status = 2 # body consumed
methodId = None # outside of any method
elif tokenId == 'lcurly':
Expand Down
12 changes: 0 additions & 12 deletions src/translator.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ class Translator
virtual QCString trClassHierarchy() = 0;
virtual QCString trCompoundList() = 0;
virtual QCString trFileList() = 0;
//virtual QCString trHeaderFiles() = 0;
virtual QCString trCompoundMembers() = 0;
virtual QCString trFileMembers() = 0;
virtual QCString trRelatedPages() = 0;
Expand All @@ -115,11 +114,9 @@ class Translator
virtual QCString trCompoundListDescription() = 0;
virtual QCString trCompoundMembersDescription(bool extractAll) = 0;
virtual QCString trFileMembersDescription(bool extractAll) = 0;
//virtual QCString trHeaderFilesDescription() = 0;
virtual QCString trExamplesDescription() = 0;
virtual QCString trRelatedPagesDescription() = 0;
virtual QCString trModulesDescription() = 0;
//virtual QCString trNoDescriptionAvailable() = 0;

// index titles (the project name is prepended for these)

Expand All @@ -135,26 +132,21 @@ class Translator
virtual QCString trPageDocumentation() = 0;
virtual QCString trReferenceManual() = 0;
virtual QCString trDefines() = 0;
//virtual QCString trFuncProtos() = 0;
virtual QCString trTypedefs() = 0;
virtual QCString trEnumerations() = 0;
virtual QCString trFunctions() = 0;
virtual QCString trVariables() = 0;
virtual QCString trEnumerationValues() = 0;
virtual QCString trDefineDocumentation() = 0;
//virtual QCString trFunctionPrototypeDocumentation() = 0;
virtual QCString trTypedefDocumentation() = 0;
virtual QCString trEnumerationTypeDocumentation() = 0;
virtual QCString trFunctionDocumentation() = 0;
virtual QCString trVariableDocumentation() = 0;
virtual QCString trCompounds() = 0;
virtual QCString trGeneratedAt(const QCString &date,const QCString &projName) = 0;
//virtual QCString trWrittenBy() = 0;
virtual QCString trClassDiagram(const QCString &clName) = 0;
virtual QCString trForInternalUseOnly() = 0;
//virtual QCString trReimplementedForInternalReasons() = 0;
virtual QCString trWarning() = 0;
//virtual QCString trBugsAndLimitations() = 0;
virtual QCString trVersion() = 0;
virtual QCString trDate() = 0;
virtual QCString trReturns() = 0;
Expand Down Expand Up @@ -234,7 +226,6 @@ class Translator
// new since 0.49-991003
//////////////////////////////////////////////////////////////////////////

//virtual QCString trSources() = 0;
virtual QCString trDefinedAtLineInSourceFile() = 0;
virtual QCString trDefinedInSourceFile() = 0;

Expand Down Expand Up @@ -328,13 +319,11 @@ class Translator
// new since 1.2.4
//////////////////////////////////////////////////////////////////////////

//virtual QCString trInterfaces() = 0;
virtual QCString trClasses() = 0;
virtual QCString trPackage(const QCString &name) = 0;
virtual QCString trPackageList() = 0;
virtual QCString trPackageListDescription() = 0;
virtual QCString trPackages() = 0;
//virtual QCString trPackageDocumentation() = 0;
virtual QCString trDefineValue() = 0;

//////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -415,7 +404,6 @@ class Translator
virtual QCString trGroup(bool first_capital, bool singular) = 0;
virtual QCString trPage(bool first_capital, bool singular) = 0;
virtual QCString trMember(bool first_capital, bool singular) = 0;
//virtual QCString trField(bool first_capital, bool singular) = 0;
virtual QCString trGlobal(bool first_capital, bool singular) = 0;

//////////////////////////////////////////////////////////////////////////
Expand Down
44 changes: 0 additions & 44 deletions src/translator_ar.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6
virtual QCString trFileList()
{ return "قائمة الملفات"; }

/*! This is put above each page as a link to the list of all verbatim headers */
virtual QCString trHeaderFiles()
{ return "الملفات الرأسية"; }

/*! This is put above each page as a link to all members of compounds. */
virtual QCString trCompoundMembers()
{
Expand Down Expand Up @@ -318,10 +314,6 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6
return result;
}

/*! This is an introduction to the page with the list of all header files. */
virtual QCString trHeaderFilesDescription()
{ return "Here are the header files that make up the API:"; }

/*! This is an introduction to the page with the list of all examples */
virtual QCString trExamplesDescription()
{ return "هذه قائمة بكل الأمثلة:"; }
Expand All @@ -334,14 +326,6 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6
virtual QCString trModulesDescription()
{ return "هذه قائمة بكل المكونات:"; }

/*! This sentences is used in the annotated class/file lists if no brief
* description is given.
*/
virtual QCString trNoDescriptionAvailable()
{ return "لا يوجد وصف متاح"; }

// index titles (the project name is prepended for these)


/*! This is used in HTML as the title of index.html. */
virtual QCString trDocumentation()
Expand Down Expand Up @@ -531,18 +515,10 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6
virtual QCString trForInternalUseOnly()
{ return "للاستخدام الداخلي فقط."; }

/*! this text is generated when the \\reimp command is used. */
virtual QCString trReimplementedForInternalReasons()
{ return "Reimplemented for internal reasons; the API is not affected."; }

/*! this text is generated when the \\warning command is used. */
virtual QCString trWarning()
{ return "تنبيه"; }

/*! this text is generated when the \\bug command is used. */
virtual QCString trBugsAndLimitations()
{ return "Bugs and limitations"; }

/*! this text is generated when the \\version command is used. */
virtual QCString trVersion()
{ return "إصدارة"; }
Expand Down Expand Up @@ -813,10 +789,6 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6
// new since 0.49-991003
//////////////////////////////////////////////////////////////////////////

virtual QCString trSources()
{
return "مصادر";
}
virtual QCString trDefinedAtLineInSourceFile()
{
return "Definition at line @0 of file @1.";
Expand Down Expand Up @@ -1150,11 +1122,6 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6
{
return "حزم";
}
/*! Used as a chapter title for Latex & RTF output */
virtual QCString trPackageDocumentation()
{
return "توثيق الحزم";
}
/*! Text shown before a multi-line define */
virtual QCString trDefineValue()
{
Expand Down Expand Up @@ -1291,17 +1258,6 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6
return result;
}

/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trField(bool /*first_capital*/, bool singular)
{
QCString result("حقل");
if (!singular) result="حقول";
return result;
}

/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
Expand Down
9 changes: 0 additions & 9 deletions src/translator_eo.h
Original file line number Diff line number Diff line change
Expand Up @@ -1941,15 +1941,6 @@ class TranslatorEsperanto : public TranslatorAdapter_1_8_4
{
return "Dokumentaro de la Metodo";
}

/*! Used as the title of the design overview picture created for the
* VHDL output.
*/
virtual QCString trDesignOverview()
{
return "Fasona Superrigardo";
}

};

#endif
9 changes: 0 additions & 9 deletions src/translator_lv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1944,15 +1944,6 @@ class TranslatorLatvian : public TranslatorAdapter_1_8_4
{
return "Metožu dokumentācija";
}

/*! Used as the title of the design overview picture created for the
* VHDL output.
*/
virtual QCString trDesignOverview()
{
return "Dizaina pārskats";
}

};

#endif
42 changes: 0 additions & 42 deletions src/translator_no.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6
virtual QCString trFileList()
{ return "Fil-liste"; }

/*! This is put above each page as a link to the list of all verbatim headers */
virtual QCString trHeaderFiles()
{ return "Header-filer"; }

/*! This is put above each page as a link to all members of compounds. */
virtual QCString trCompoundMembers()
{
Expand Down Expand Up @@ -329,10 +325,6 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6
return result;
}

/*! This is an introduction to the page with the list of all header files. */
virtual QCString trHeaderFilesDescription()
{ return "Her er alle header-filene som utgjør API'et:"; }

/*! This is an introduction to the page with the list of all examples */
virtual QCString trExamplesDescription()
{ return "Her er en liste over alle eksemplene:"; }
Expand All @@ -345,12 +337,6 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6
virtual QCString trModulesDescription()
{ return "Her er en liste over alle moduler:"; }

/*! This sentences is used in the annotated class/file lists if no brief
* description is given.
*/
virtual QCString trNoDescriptionAvailable()
{ return "Ingen beskrivelse tilgjengelig"; }

// index titles (the project name is prepended for these)


Expand Down Expand Up @@ -542,18 +528,10 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6
virtual QCString trForInternalUseOnly()
{ return "Kun for intern bruk."; }

/*! this text is generated when the \\reimp command is used. */
virtual QCString trReimplementedForInternalReasons()
{ return "Reimplementert av interne grunner; API er ikke påvirket."; }

/*! this text is generated when the \\warning command is used. */
virtual QCString trWarning()
{ return "Advarsel"; }

/*! this text is generated when the \\bug command is used. */
virtual QCString trBugsAndLimitations()
{ return "Feil og begrensninger"; }

/*! this text is generated when the \\version command is used. */
virtual QCString trVersion()
{ return "Versjon"; }
Expand Down Expand Up @@ -824,10 +802,6 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6
// new since 0.49-991003
//////////////////////////////////////////////////////////////////////////

virtual QCString trSources()
{
return "Kilder";
}
virtual QCString trDefinedAtLineInSourceFile()
{
return "Definisjon på linje @0 i filen @1.";
Expand Down Expand Up @@ -1155,11 +1129,6 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6
{
return "Pakker";
}
/*! Used as a chapter title for Latex & RTF output */
virtual QCString trPackageDocumentation()
{
return "Pakke-dokumentasjon";
}
/*! Text shown before a multi-line define */
virtual QCString trDefineValue()
{
Expand Down Expand Up @@ -1296,17 +1265,6 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6
return result;
}

/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trField(bool first_capital, bool singular)
{
QCString result((first_capital ? "Felt" : "felt"));
if (!singular) result+="";
return result;
}

/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
Expand Down
Loading

0 comments on commit f290f81

Please sign in to comment.