Skip to content

Commit

Permalink
Remove some code that does not seem to be needed
Browse files Browse the repository at this point in the history
It is unclear why the compbrlAtCursor test was needed, and no tests
fail after it has been removed.
  • Loading branch information
bertfrees committed Dec 6, 2021
1 parent b100de3 commit bb0ef81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions liblouis/lou_translateString.c
Original file line number Diff line number Diff line change
Expand Up @@ -3785,10 +3785,8 @@ translateString(const TranslationTableHeader *table, int mode, int currentPass,
pos++;
break;
case CTO_UpperCase:
/* Only needs special handling if not within compbrl and the table defines a
* capital sign. */
if (!(mode & (compbrlAtCursor | compbrlLeftCursor)) &&
capsletterDefined(table)) {
/* Only needs special handling if table defines a capital sign. */
if (capsletterDefined(table)) {
for (k = 0; k < transCharslen; k++) {
if (!putCharacter(input->chars[pos], table, pos, input, output,
posMapping, cursorPosition, cursorStatus, mode))
Expand Down

0 comments on commit bb0ef81

Please sign in to comment.