Skip to content

Commit

Permalink
remove unused conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
argrath committed Sep 13, 2024
1 parent 34acc73 commit 2ca5e49
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions japanese/jlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ jbuffer(
c1 = buf[1];
c2 = c;

if(IC == output_kcode)
#ifdef POSIX_ICONV
if(IC == output_kcode)
{
f2buf[0] = c1;
f2buf[1] = c2;
Expand All @@ -396,33 +396,7 @@ jbuffer(
}
}
#else /*WIN32*/
;
else if(IC == EUC){
switch(output_kcode){
case SJIS:
uc[0] = c1;
uc[1] = c2;
p = e2sj(uc);
c1 = p[0];
c2 = p[1];
break;
default:
impossible("Unknown kcode!");
break;
}
}
else if(IC == SJIS){
uc[0] = c1;
uc[1] = c2;
p = sj2e(uc);
switch(output_kcode){
case EUC:
break;
default:
impossible("Unknown kcode!");
break;
}
}
/* SJIS to SJIS only */
f2buf[0] = c1;
f2buf[1] = c2;
f2buf[2] = '\0';
Expand Down

0 comments on commit 2ca5e49

Please sign in to comment.