Skip to content

Commit

Permalink
Remove UTF8 <-> EUC conversion functions.
Browse files Browse the repository at this point in the history
BUG=#252
TEST=unittest
REF_BUG=19010851
REF_CL=84862327
  • Loading branch information
Noriyuki Takahashi authored and yukawa committed Oct 25, 2015
1 parent 8ea8133 commit 26f4380
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
13 changes: 0 additions & 13 deletions src/base/encoding_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ static int GetCodepage(const char* name) {
} kCodePageMap[] = {
{ "UTF8", CP_UTF8 }, // Unicode UTF-8
{ "SJIS", 932 }, // ANSI/OEM - Japanese, Shift-JIS
{ "EUC-JP-MS", 51932 }, // EUC - Japanese
{ "JIS", 20932 }, // JIS X 0208-1990 & 0212-1990
};

for (size_t i = 0; i < arraysize(kCodePageMap); i++) {
Expand Down Expand Up @@ -166,17 +164,6 @@ inline bool Convert(const char *from, const char *to,

namespace mozc {

#ifndef OS_WIN
// The following functions don't work on Windows
void EncodingUtil::UTF8ToEUC(const string &input, string *output) {
Convert("UTF8", "EUC-JP-MS", input, output);
}

void EncodingUtil::EUCToUTF8(const string &input, string *output) {
Convert("EUC-JP-MS", "UTF8", input, output);
}
#endif // OS_WIN

void EncodingUtil::UTF8ToSJIS(const string &input, string *output) {
Convert("UTF8", "SJIS", input, output);
}
Expand Down
6 changes: 0 additions & 6 deletions src/base/encoding_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ namespace mozc {

class EncodingUtil {
public:
#ifndef OS_WIN
// The following functions don't work on Windows.
static void UTF8ToEUC(const string &input, string *output);
static void EUCToUTF8(const string &input, string *output);
#endif // OS_WIN

static void UTF8ToSJIS(const string &input, string *output);
static void SJISToUTF8(const string &input, string *output);

Expand Down
2 changes: 1 addition & 1 deletion src/mozc_version_template.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MAJOR=2
MINOR=17
BUILD=2140
BUILD=2141
REVISION=102
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
# downloaded by NaCl Mozc.
Expand Down

0 comments on commit 26f4380

Please sign in to comment.