ported from UXP: Issue #58 - Follow-up: Remove Rust binding leftovers (6d154eee)

This commit is contained in:
2024-04-04 07:35:11 +08:00
parent 20eb08cd72
commit 2a37bf6307
6 changed files with 2 additions and 176 deletions
-45
View File
@@ -351,48 +351,3 @@ nsStringBuffer::SizeOfIncludingThisEvenIfShared(mozilla::MallocSizeOf aMallocSiz
static_assert(sizeof(nsStringContainer_base) == sizeof(nsSubstring),
"internal and external strings must have the same size");
// Provide rust bindings to the nsA[C]String types
extern "C" {
void Gecko_FinalizeCString(nsACString* aThis)
{
aThis->~nsACString();
}
void Gecko_AssignCString(nsACString* aThis, const nsACString* aOther)
{
aThis->Assign(*aOther);
}
void Gecko_AppendCString(nsACString* aThis, const nsACString* aOther)
{
aThis->Append(*aOther);
}
void Gecko_TruncateCString(nsACString* aThis)
{
aThis->Truncate();
}
void Gecko_FinalizeString(nsAString* aThis)
{
aThis->~nsAString();
}
void Gecko_AssignString(nsAString* aThis, const nsAString* aOther)
{
aThis->Assign(*aOther);
}
void Gecko_AppendString(nsAString* aThis, const nsAString* aOther)
{
aThis->Append(*aOther);
}
void Gecko_TruncateString(nsAString* aThis)
{
aThis->Truncate();
}
} // extern "C"