Skip to content

Commit

Permalink
Clean up Starboardizations from ICU (#3866)
Browse files Browse the repository at this point in the history
Removes a lot of obsolete POEM headers and revert some upstream diff
noise.

Test-On-Device: true

b/120914834
b/189235009
  • Loading branch information
kaidokert authored Jul 22, 2024
1 parent 1b146e7 commit 75e2941
Show file tree
Hide file tree
Showing 141 changed files with 10 additions and 420 deletions.
3 changes: 0 additions & 3 deletions third_party/icu/source/common/bmpset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* created by: Markus W. Scherer
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"
#include "unicode/uniset.h"
#include "unicode/utf8.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/brkiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@

#if !UCONFIG_NO_BREAK_ITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/rbbi.h"
#include "unicode/brkiter.h"
#include "unicode/udata.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/bytestrie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* created by: Markus W. Scherer
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"
#include "unicode/bytestream.h"
#include "unicode/bytestrie.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/bytestriebuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* created by: Markus W. Scherer
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"
#include "unicode/bytestrie.h"
#include "unicode/bytestriebuilder.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/bytestrieiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* created by: Markus W. Scherer
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"
#include "unicode/bytestrie.h"
#include "unicode/stringpiece.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/cmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
*
******************************************************************************
*/
#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/uclean.h"
#include "cmemory.h"
#include "putilimp.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/cmemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@

#include "unicode/utypes.h"

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif
#include <stddef.h>
#include <string.h>
#include "unicode/localpointer.h"
Expand Down
6 changes: 1 addition & 5 deletions third_party/icu/source/common/cstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@
*/


#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#else
#include <stdio.h>
#endif

#include <stdlib.h>
#include <stdio.h>
#include "unicode/utypes.h"
#include "cmemory.h"
#include "cstring.h"
Expand Down
2 changes: 0 additions & 2 deletions third_party/icu/source/common/cwchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
#ifndef __CWCHAR_H__
#define __CWCHAR_H__

#if !defined(STARBOARD)
#include <string.h>
#include <stdlib.h>
#endif
#include "unicode/utypes.h"

/* Do this after utypes.h so that we have U_HAVE_WCHAR_H . */
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/dictbe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

#if !UCONFIG_NO_BREAK_ITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "brkeng.h"
#include "dictbe.h"
#include "unicode/uniset.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/loadednormalizer2impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@

#if !UCONFIG_NO_NORMALIZATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/udata.h"
#include "unicode/localpointer.h"
#include "unicode/normalizer2.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/locavailable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
* that then do not depend on resource bundle code and res_index bundles.
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/errorcode.h"
#include "unicode/utypes.h"
#include "unicode/locid.h"
Expand Down
4 changes: 0 additions & 4 deletions third_party/icu/source/common/locid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
******************************************************************************
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)

#include <utility>

#include "unicode/bytestream.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/locutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@

#if !UCONFIG_NO_SERVICE || !UCONFIG_NO_TRANSLITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/resbund.h"
#include "unicode/uenum.h"
#include "cmemory.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/messagepattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#if !UCONFIG_NO_FORMATTING

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/messagepattern.h"
#include "unicode/unistr.h"
#include "unicode/utf16.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/normalizer2impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#if !UCONFIG_NO_NORMALIZATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/bytestream.h"
#include "unicode/edits.h"
#include "unicode/normalizer2.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/propsvec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
* Store bits (Unicode character properties) in bit set vectors.
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include <stdlib.h>
#include "unicode/utypes.h"
#include "cmemory.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/punycode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ Disclaimer and license
* - UTF-16 handling
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"

#if !UCONFIG_NO_IDNA
Expand Down
6 changes: 0 additions & 6 deletions third_party/icu/source/common/putil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@
******************************************************************************
*/

// Starboard poems must be included before uposixdefs.h, or else they cause
// compiler errors on some platforms.
#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)

// Defines _XOPEN_SOURCE for access to POSIX functions.
// Must be before any other #includes.
#include "uposixdefs.h"
Expand Down
4 changes: 0 additions & 4 deletions third_party/icu/source/common/rbbi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

#if !UCONFIG_NO_BREAK_ITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)

#include <cinttypes>

#include "unicode/rbbi.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/rbbidata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

#if !UCONFIG_NO_BREAK_ITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/ucptrie.h"
#include "unicode/utypes.h"
#include "rbbidata.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/rbbinode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

#if !UCONFIG_NO_BREAK_ITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/unistr.h"
#include "unicode/uniset.h"
#include "unicode/uchar.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/rbbiscan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#if !UCONFIG_NO_BREAK_ITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/unistr.h"
#include "unicode/uniset.h"
#include "unicode/uchar.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/rbbisetb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@

#if !UCONFIG_NO_BREAK_ITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/uniset.h"
#include "uvector.h"
#include "uassert.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/rbbitblb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@

#if !UCONFIG_NO_BREAK_ITERATION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/unistr.h"
#include "rbbitblb.h"
#include "rbbirb.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/sharedobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
******************************************************************************
* sharedobject.cpp
*/
#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "sharedobject.h"
#include "mutex.h"
#include "uassert.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/stringtriebuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* created by: Markus W. Scherer
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "utypeinfo.h" // for 'typeid' to work
#include "unicode/utypes.h"
#include "unicode/stringtriebuilder.h"
Expand Down
2 changes: 0 additions & 2 deletions third_party/icu/source/common/uassert.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
#include "starboard/configuration.h"
#endif // defined(STARBOARD)
#if U_DEBUG
#if !defined(STARBOARD)
# include <assert.h>
#endif
# define U_ASSERT(exp) assert(exp)
#elif U_CPLUSPLUS_VERSION
# define U_ASSERT(exp) (void)0
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/ubidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
*
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "cmemory.h"
#include "unicode/utypes.h"
#include "unicode/ustring.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/ubidiln.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* created by: Markus W. Scherer, updated by Matitiahu Allouche
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "cmemory.h"
#include "unicode/utypes.h"
#include "unicode/ustring.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/uchar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
******************************************************************************
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"
#include "unicode/uchar.h"
#include "unicode/uscript.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/ucharstriebuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* created by: Markus W. Scherer
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"
#include "unicode/ucharstrie.h"
#include "unicode/ucharstriebuilder.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/ucharstrieiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* created by: Markus W. Scherer
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"
#include "unicode/ucharstrie.h"
#include "unicode/unistr.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/ucln_cmn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* created by: George Rhoten
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"
#include "unicode/uclean.h"
#include "cmemory.h"
Expand Down
2 changes: 0 additions & 2 deletions third_party/icu/source/common/ucln_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
#define __UCLN_IMP_H__

#include "ucln.h"
#if !defined(STARBOARD)
#include <stdlib.h>
#endif

/**
* Auto cleanup of ICU libraries
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/ucnv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
* 06/20/2000 helena OS/400 port changes; mostly typecast.
*/

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/utypes.h"

#if !UCONFIG_NO_CONVERSION
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/ucnv_bld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@

#if !UCONFIG_NO_CONVERSION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/putil.h"
#include "unicode/udata.h"
#include "unicode/ucnv.h"
Expand Down
3 changes: 0 additions & 3 deletions third_party/icu/source/common/ucnv_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#if !UCONFIG_NO_CONVERSION && !UCONFIG_NO_LEGACY_CONVERSION

#if defined(STARBOARD)
#include "starboard/client_porting/poem/assert_poem.h"
#endif // defined(STARBOARD)
#include "unicode/uset.h"
#include "unicode/ustring.h"
#include "ucnv_bld.h"
Expand Down
Loading

0 comments on commit 75e2941

Please sign in to comment.