mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1166667 - Remove LangGroupFromUnicodeRange due to unused. r=jfkthame
This commit is contained in:
parent
bab626993e
commit
f0ea424a66
@ -4,39 +4,6 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsUnicodeRange.h"
|
||||
#include "nsGkAtoms.h"
|
||||
|
||||
// This table depends on unicode range definitions.
|
||||
// Each item's index must correspond unicode range value
|
||||
// eg. x-cyrillic = LangGroupTable[kRangeCyrillic]
|
||||
static nsIAtom **gUnicodeRangeToLangGroupAtomTable[] =
|
||||
{
|
||||
&nsGkAtoms::x_cyrillic,
|
||||
&nsGkAtoms::el_,
|
||||
&nsGkAtoms::he,
|
||||
&nsGkAtoms::ar,
|
||||
&nsGkAtoms::th,
|
||||
&nsGkAtoms::ko,
|
||||
&nsGkAtoms::Japanese,
|
||||
&nsGkAtoms::zh_cn,
|
||||
&nsGkAtoms::zh_tw,
|
||||
&nsGkAtoms::x_devanagari,
|
||||
&nsGkAtoms::x_tamil,
|
||||
&nsGkAtoms::x_armn,
|
||||
&nsGkAtoms::x_beng,
|
||||
&nsGkAtoms::x_cans,
|
||||
&nsGkAtoms::x_ethi,
|
||||
&nsGkAtoms::x_geor,
|
||||
&nsGkAtoms::x_gujr,
|
||||
&nsGkAtoms::x_guru,
|
||||
&nsGkAtoms::x_khmr,
|
||||
&nsGkAtoms::x_mlym,
|
||||
&nsGkAtoms::x_orya,
|
||||
&nsGkAtoms::x_telu,
|
||||
&nsGkAtoms::x_knda,
|
||||
&nsGkAtoms::x_sinh,
|
||||
&nsGkAtoms::x_tibt
|
||||
};
|
||||
|
||||
/**********************************************************************
|
||||
* Unicode subranges as defined in unicode 3.0
|
||||
@ -450,12 +417,3 @@ uint32_t FindCharUnicodeRange(uint32_t ch)
|
||||
// Yet another table to look at : U+0700 - U+16FF : 128 code point blocks
|
||||
return gUnicodeTertiaryRangeTable[(ch - 0x0700) >> 7];
|
||||
}
|
||||
|
||||
nsIAtom *LangGroupFromUnicodeRange(uint8_t unicodeRange)
|
||||
{
|
||||
if (kRangeSpecificItemNum > unicodeRange) {
|
||||
nsIAtom **atom = gUnicodeRangeToLangGroupAtomTable[unicodeRange];
|
||||
return *atom;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -8,8 +8,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
class nsIAtom;
|
||||
|
||||
// The following constants define unicode subranges
|
||||
// values below kRangeNum must be continuous so that we can map to
|
||||
// lang group directly.
|
||||
@ -89,6 +87,5 @@ const uint8_t kRangeTertiaryTable = 145; // leave room for 16 subtable
|
||||
|
||||
|
||||
uint32_t FindCharUnicodeRange(uint32_t ch);
|
||||
nsIAtom* LangGroupFromUnicodeRange(uint8_t unicodeRange);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user