diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2017-02-11 14:00:22 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2017-02-11 15:23:51 +0100 |
commit | 46345b937448dbeac54f33bd3a8d38be4c1dc1ef (patch) | |
tree | 19d5223d5a8e44b6a5d9afcba198cc05b927dbcc /src/node_i18n.cc | |
parent | 75019dfa67f37245ff099eebc61199272696e9f4 (diff) | |
download | android-node-v8-46345b937448dbeac54f33bd3a8d38be4c1dc1ef.tar.gz android-node-v8-46345b937448dbeac54f33bd3a8d38be4c1dc1ef.tar.bz2 android-node-v8-46345b937448dbeac54f33bd3a8d38be4c1dc1ef.zip |
src: make --icu-data-dir= switch testable
Move some code around so we can properly test whether the switch
actually does anything.
PR-URL: https://github.com/nodejs/node/pull/11255
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'src/node_i18n.cc')
-rw-r--r-- | src/node_i18n.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/node_i18n.cc b/src/node_i18n.cc index 40d048fa36..648012a506 100644 --- a/src/node_i18n.cc +++ b/src/node_i18n.cc @@ -70,8 +70,6 @@ using v8::Object; using v8::String; using v8::Value; -bool flag_icu_data_dir = false; - namespace i18n { const size_t kStorageSize = 1024; @@ -415,7 +413,6 @@ bool InitializeICUDirectory(const std::string& path) { #endif // !NODE_HAVE_SMALL_ICU return (status == U_ZERO_ERROR); } else { - flag_icu_data_dir = true; u_setDataDirectory(path.c_str()); return true; // No error. } |