Remove CSSAssertSetFailFunc
Summary: Remove CSSAssertSetFailFunc and use CSSLogLevelError for throwing managed exception. Reviewed By: emilsjolander Differential Revision: D4155452 fbshipit-source-id: 5a19c79a212f204d13064527fd6e5843bab76e6b
This commit is contained in:
committed by
Facebook Github Bot
parent
8a7183f465
commit
c382d513fb
@@ -2497,17 +2497,3 @@ void CSSLog(CSSLogLevel level, const char *format, ...) {
|
||||
gLogger(level, format, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
#ifdef CSS_ASSERT_FAIL_ENABLED
|
||||
static CSSAssertFailFunc gAssertFailFunc;
|
||||
|
||||
void CSSAssertSetFailFunc(CSSAssertFailFunc func) {
|
||||
gAssertFailFunc = func;
|
||||
}
|
||||
|
||||
void CSSAssertFail(const char *message) {
|
||||
if (gAssertFailFunc) {
|
||||
(*gAssertFailFunc)(message);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user