Skip to content

Commit 7d065f5

Browse files
committed
Remove bad asserts.
1 parent 34b5506 commit 7d065f5

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/intl/lc_ascii.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,6 @@ USHORT famasc_string_to_key(texttype* obj, USHORT iInLen, const BYTE* pInChar, U
523523
{
524524
fb_assert(pOutChar != NULL);
525525
fb_assert(pInChar != NULL);
526-
fb_assert(iInLen <= LANGASCII_MAX_KEY);
527-
// fb_assert(iOutLen <= LANGASCII_MAX_KEY);
528526
fb_assert(iOutLen >= famasc_key_length(obj, iInLen));
529527

530528
// point inbuff at last character

src/intl/lc_ksc.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ static USHORT LCKSC_string_to_key(texttype* obj, USHORT iInLen, const BYTE* pInC
139139
{
140140
fb_assert(pOutChar != NULL);
141141
fb_assert(pInChar != NULL);
142-
fb_assert(iInLen <= LANGKSC_MAX_KEY);
143-
fb_assert(iOutLen <= LANGKSC_MAX_KEY);
144142
fb_assert(iOutLen >= LCKSC_key_length(obj, iInLen));
145143

146144
const BYTE* inbuff = pInChar + iInLen - 1;

src/intl/lc_narrow.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ USHORT LC_NARROW_string_to_key(texttype* obj, USHORT iInLen, const BYTE* pInChar
168168
{
169169
fb_assert(pOutChar != NULL);
170170
fb_assert(pInChar != NULL);
171-
// fb_assert (iInLen <= LANGFAM2_MAX_KEY);
172-
fb_assert(iOutLen <= LANGFAM2_MAX_KEY);
173171
fb_assert(iOutLen >= LC_NARROW_key_length(obj, iInLen));
174172

175173
TextTypeImpl* impl = static_cast<TextTypeImpl*>(obj->texttype_impl);

0 commit comments

Comments
 (0)