Bug 720759 - Delete the fallible EqualStrings signature when both provided strings are linear, so that callers are required to use the faster, infallible linear-strings overload. r=Ms2ger

This commit is contained in:
Jeff Walden 2012-01-24 10:30:46 -08:00
parent a471a1864a
commit 5bcf1f98f0

View File

@ -188,6 +188,10 @@ namespace js {
extern bool
EqualStrings(JSContext *cx, JSString *str1, JSString *str2, bool *result);
/* Use the infallible method instead! */
extern bool
EqualStrings(JSContext *cx, JSLinearString *str1, JSLinearString *str2, bool *result) MOZ_DELETE;
/* EqualStrings is infallible on linear strings. */
extern bool
EqualStrings(JSLinearString *str1, JSLinearString *str2);