@@ -183,10 +183,7 @@ inT32 row_words( //compute space size
183
183
BOOL8 testing_on // for debug
184
184
) {
185
185
BOOL8 testing_row; // contains testpt
186
- BOOL8 prev_valid; // if decent size
187
- BOOL8 this_valid; // current blob big enough
188
186
inT32 prev_x; // end of prev blob
189
- inT32 min_gap; // min interesting gap
190
187
inT32 cluster_count; // no of clusters
191
188
inT32 gap_index; // which cluster
192
189
inT32 smooth_factor; // for smoothing stats
@@ -215,20 +212,15 @@ inT32 row_words( //compute space size
215
212
testing_row = TRUE ;
216
213
gap_stats.add (blob_box.width (), 1 );
217
214
}
218
- min_gap = (inT32) floor (gap_stats.ile (textord_words_width_ile));
219
215
gap_stats.clear ();
220
216
for (blob_it.mark_cycle_pt (); !blob_it.cycled_list (); blob_it.forward ()) {
221
217
blob = blob_it.data ();
222
218
if (!blob->joined_to_prev ()) {
223
219
blob_box = blob->bounding_box ();
224
- // this_valid=blob_box.width()>=min_gap;
225
- this_valid = TRUE ;
226
- if (this_valid && prev_valid
227
- && blob_box.left () - prev_x < maxwidth) {
220
+ if (blob_box.left () - prev_x < maxwidth) {
228
221
gap_stats.add (blob_box.left () - prev_x, 1 );
229
222
}
230
223
prev_x = blob_box.right ();
231
- prev_valid = this_valid;
232
224
}
233
225
}
234
226
if (gap_stats.get_total () == 0 ) {
0 commit comments