Skip to content

Commit

Permalink
Cherry pick PR #1176: Cleanup the ICU init path for Evergreen. (#1180)
Browse files Browse the repository at this point in the history
Refer to the original PR: #1176

b/294872977

Co-authored-by: y4vor <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and y4vor authored Aug 10, 2023
1 parent 561de07 commit 8481818
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions starboard/client_porting/icu_init/icu_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,6 @@ void Initialize() {
data_path += kSbFileSepString;
data_path += "icu";

#if SB_IS(EVERGREEN)
// If the icu tables are not under the content directory, use the
// storage directory. This minimizes Evergreen's storage usage
// on the device, as it can share the tables under
// storage between all the installations, but still has the option
// to use its own tables under content.
if (!SbFileExists(data_path.c_str())) {
bool result = SbSystemGetPath(kSbSystemPathStorageDirectory,
base_path.data(), base_path.size());
SB_DCHECK(result);
data_path = base_path.data();
data_path += kSbFileSepString;
data_path += "icu";
SbLogFormatF("Using icu tables from: %s\n", data_path.c_str());
}
#endif
// set this as the data directory.
u_setDataDirectory(data_path.c_str());

Expand Down

0 comments on commit 8481818

Please sign in to comment.