Skip to content

Commit bb7bb1f

Browse files
committed
Remove old comments for exceptions
Exceptions are no longer used. Remove also some history comments and fix several comments. Signed-off-by: Stefan Weil <[email protected]>
1 parent b0c9d5b commit bb7bb1f

23 files changed

+8
-447
lines changed

src/classify/adaptive.cpp

-30
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ using tesseract::TFile;
4444
* @param ClassId class id to associate with new class
4545
*
4646
* @note Globals: none
47-
* @note Exceptions: none
48-
* @note History: Thu Mar 14 13:06:09 1991, DSJ, Created.
4947
*/
5048
void AddAdaptedClass(ADAPT_TEMPLATES Templates,
5149
ADAPT_CLASS Class,
@@ -75,8 +73,6 @@ void AddAdaptedClass(ADAPT_TEMPLATES Templates,
7573
* @param Config config to be freed
7674
*
7775
* @note Globals: none
78-
* @note Exceptions: none
79-
* @note History: Thu Mar 14 13:34:23 1991, DSJ, Created.
8076
*/
8177
void FreeTempConfig(TEMP_CONFIG Config) {
8278
assert (Config != nullptr);
@@ -105,8 +101,6 @@ void FreePermConfig(PERM_CONFIG Config) {
105101
* @return Ptr to new class data structure.
106102
*
107103
* @note Globals: none
108-
* @note Exceptions: none
109-
* @note History: Thu Mar 14 12:58:13 1991, DSJ, Created.
110104
*/
111105
ADAPT_CLASS NewAdaptedClass() {
112106
ADAPT_CLASS Class;
@@ -156,8 +150,6 @@ namespace tesseract {
156150
* @return Ptr to new adapted templates.
157151
*
158152
* @note Globals: none
159-
* @note Exceptions: none
160-
* @note History: Fri Mar 8 10:15:28 1991, DSJ, Created.
161153
*/
162154
ADAPT_TEMPLATES Classify::NewAdaptedTemplates(bool InitFromUnicharset) {
163155
ADAPT_TEMPLATES Templates;
@@ -210,8 +202,6 @@ void free_adapted_templates(ADAPT_TEMPLATES templates) {
210202
* @return Ptr to new temp config.
211203
*
212204
* @note Globals: none
213-
* @note Exceptions: none
214-
* @note History: Thu Mar 14 13:28:21 1991, DSJ, Created.
215205
*/
216206
TEMP_CONFIG NewTempConfig(int MaxProtoId, int FontinfoId) {
217207
int NumProtos = MaxProtoId + 1;
@@ -237,8 +227,6 @@ TEMP_CONFIG NewTempConfig(int MaxProtoId, int FontinfoId) {
237227
* @return Ptr to new temporary proto.
238228
*
239229
* @note Globals: none
240-
* @note Exceptions: none
241-
* @note History: Thu Mar 14 13:31:31 1991, DSJ, Created.
242230
*/
243231
TEMP_PROTO NewTempProto() {
244232
return (TEMP_PROTO)malloc(sizeof(TEMP_PROTO_STRUCT));
@@ -255,8 +243,6 @@ namespace tesseract {
255243
* @param Templates adapted templates to print to File
256244
*
257245
* @note Globals: none
258-
* @note Exceptions: none
259-
* @note History: Wed Mar 20 13:35:29 1991, DSJ, Created.
260246
*/
261247
void Classify::PrintAdaptedTemplates(FILE *File, ADAPT_TEMPLATES Templates) {
262248
INT_CLASS IClass;
@@ -294,8 +280,6 @@ void Classify::PrintAdaptedTemplates(FILE *File, ADAPT_TEMPLATES Templates) {
294280
* @return Ptr to new adapted class.
295281
*
296282
* @note Globals: none
297-
* @note Exceptions: none
298-
* @note History: Tue Mar 19 14:11:01 1991, DSJ, Created.
299283
*/
300284
ADAPT_CLASS ReadAdaptedClass(TFile *fp) {
301285
int NumTempProtos;
@@ -347,8 +331,6 @@ namespace tesseract {
347331
* @return Ptr to adapted templates read from file.
348332
*
349333
* @note Globals: none
350-
* @note Exceptions: none
351-
* @note History: Mon Mar 18 15:18:10 1991, DSJ, Created.
352334
*/
353335
ADAPT_TEMPLATES Classify::ReadAdaptedTemplates(TFile *fp) {
354336
ADAPT_TEMPLATES Templates;
@@ -379,8 +361,6 @@ ADAPT_TEMPLATES Classify::ReadAdaptedTemplates(TFile *fp) {
379361
* @return Ptr to new permanent configuration description.
380362
*
381363
* @note Globals: none
382-
* @note Exceptions: none
383-
* @note History: Tue Mar 19 14:25:26 1991, DSJ, Created.
384364
*/
385365
PERM_CONFIG ReadPermConfig(TFile *fp) {
386366
PERM_CONFIG Config = (PERM_CONFIG)malloc(sizeof(PERM_CONFIG_STRUCT));
@@ -405,8 +385,6 @@ PERM_CONFIG ReadPermConfig(TFile *fp) {
405385
* @return Ptr to new temporary configuration description.
406386
*
407387
* @note Globals: none
408-
* @note Exceptions: none
409-
* @note History: Tue Mar 19 14:29:59 1991, DSJ, Created.
410388
*/
411389
TEMP_CONFIG ReadTempConfig(TFile *fp) {
412390
TEMP_CONFIG Config = (TEMP_CONFIG)malloc(sizeof(TEMP_CONFIG_STRUCT));
@@ -430,8 +408,6 @@ TEMP_CONFIG ReadTempConfig(TFile *fp) {
430408
* @param NumConfigs number of configs in Class
431409
*
432410
* @note Globals: none
433-
* @note Exceptions: none
434-
* @note History: Tue Mar 19 13:33:51 1991, DSJ, Created.
435411
*/
436412
void WriteAdaptedClass(FILE *File, ADAPT_CLASS Class, int NumConfigs) {
437413
int NumTempProtos;
@@ -476,8 +452,6 @@ namespace tesseract {
476452
* @param Templates set of adapted templates to write to File
477453
*
478454
* @note Globals: none
479-
* @note Exceptions: none
480-
* @note History: Mon Mar 18 15:07:32 1991, DSJ, Created.
481455
*/
482456
void Classify::WriteAdaptedTemplates(FILE *File, ADAPT_TEMPLATES Templates) {
483457
int i;
@@ -506,8 +480,6 @@ void Classify::WriteAdaptedTemplates(FILE *File, ADAPT_TEMPLATES Templates) {
506480
* @param Config permanent config to write to File
507481
*
508482
* @note Globals: none
509-
* @note Exceptions: none
510-
* @note History: Tue Mar 19 13:55:44 1991, DSJ, Created.
511483
*/
512484
void WritePermConfig(FILE *File, PERM_CONFIG Config) {
513485
uint8_t NumAmbigs = 0;
@@ -530,8 +502,6 @@ void WritePermConfig(FILE *File, PERM_CONFIG Config) {
530502
* @param Config temporary config to write to File
531503
*
532504
* @note Globals: none
533-
* @note Exceptions: none
534-
* @note History: Tue Mar 19 14:00:28 1991, DSJ, Created.
535505
*/
536506
void WriteTempConfig(FILE *File, TEMP_CONFIG Config) {
537507
assert (Config != nullptr);

0 commit comments

Comments
 (0)