mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #325 Part 7: Remove non-Intl legacy code paths from IndexedDB.
This commit is contained in:
parent
3f6fb7bb4a
commit
d4d0fbf3d5
9 changed files with 1 additions and 58 deletions
|
|
@ -65,13 +65,11 @@ IDBCursor::IDBCursor(Type aType,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_INTL_API
|
||||
bool
|
||||
IDBCursor::IsLocaleAware() const
|
||||
{
|
||||
return mSourceIndex && !mSourceIndex->Locale().IsEmpty();
|
||||
}
|
||||
#endif
|
||||
|
||||
IDBCursor::~IDBCursor()
|
||||
{
|
||||
|
|
@ -437,7 +435,6 @@ IDBCursor::Continue(JSContext* aCx,
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_INTL_API
|
||||
if (IsLocaleAware() && !key.IsUnset()) {
|
||||
Key tmp;
|
||||
aRv = key.ToLocaleBasedKey(tmp, mSourceIndex->Locale());
|
||||
|
|
@ -448,9 +445,6 @@ IDBCursor::Continue(JSContext* aCx,
|
|||
}
|
||||
|
||||
const Key& sortKey = IsLocaleAware() ? mSortKey : mKey;
|
||||
#else
|
||||
const Key& sortKey = mKey;
|
||||
#endif
|
||||
|
||||
if (!key.IsUnset()) {
|
||||
switch (mDirection) {
|
||||
|
|
@ -547,7 +541,6 @@ IDBCursor::ContinuePrimaryKey(JSContext* aCx,
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_INTL_API
|
||||
if (IsLocaleAware() && !key.IsUnset()) {
|
||||
Key tmp;
|
||||
aRv = key.ToLocaleBasedKey(tmp, mSourceIndex->Locale());
|
||||
|
|
@ -558,9 +551,6 @@ IDBCursor::ContinuePrimaryKey(JSContext* aCx,
|
|||
}
|
||||
|
||||
const Key& sortKey = IsLocaleAware() ? mSortKey : mKey;
|
||||
#else
|
||||
const Key& sortKey = mKey;
|
||||
#endif
|
||||
|
||||
if (key.IsUnset()) {
|
||||
aRv.Throw(NS_ERROR_DOM_INDEXEDDB_DATA_ERR);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue