зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1847469 - Part 19: Remove unused conversion functions. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D185757
This commit is contained in:
Родитель
376421c1fb
Коммит
6eeb584f68
|
@ -172,13 +172,6 @@ class JSErrorBase {
|
|||
|
||||
JSString* newMessageString(JSContext* cx);
|
||||
|
||||
// JSErrorBase uses 1-origin column numbers.
|
||||
// If the caller uses 0-origin column numbers, this method should be used to
|
||||
// convert (bug 1144340).
|
||||
static uint32_t fromZeroOriginToOneOrigin(uint32_t column) {
|
||||
return column + 1;
|
||||
}
|
||||
|
||||
private:
|
||||
void freeMessage();
|
||||
};
|
||||
|
|
|
@ -1988,14 +1988,6 @@ UniqueChars BuildUTF8StackString(JSContext* cx, JSPrincipals* principals,
|
|||
return JS_EncodeStringToUTF8(cx, stackStr);
|
||||
}
|
||||
|
||||
uint32_t FixupMaybeWASMColumnForDisplay(uint32_t column) {
|
||||
if (column & JS::TaggedColumnNumberZeroOrigin::WasmFunctionTag) {
|
||||
return JS::WasmFunctionIndex::DefaultBinarySourceColumnNumberOneOrigin;
|
||||
}
|
||||
|
||||
return JSErrorBase::fromZeroOriginToOneOrigin(column);
|
||||
}
|
||||
|
||||
} /* namespace js */
|
||||
|
||||
namespace JS {
|
||||
|
|
|
@ -335,8 +335,6 @@ struct MutableWrappedPtrOperations<SavedStacks::LocationValue, Wrapper>
|
|||
JS::UniqueChars BuildUTF8StackString(JSContext* cx, JSPrincipals* principals,
|
||||
HandleObject stack);
|
||||
|
||||
uint32_t FixupMaybeWASMColumnForDisplay(uint32_t column);
|
||||
|
||||
js::SavedFrame* UnwrapSavedFrame(JSContext* cx, JSPrincipals* principals,
|
||||
HandleObject obj,
|
||||
JS::SavedFrameSelfHosted selfHosted,
|
||||
|
|
Загрузка…
Ссылка в новой задаче