mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-27 04:31:16 +00:00
ported from UXP: Issue #58 - Follow-up: Remove Rust binding leftovers (6d154eee)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user