summaryrefslogtreecommitdiff
path: root/netwerk/base/nsStandardURL.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-03-13 10:21:40 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-03-13 11:55:28 +0100
commita1f143420203395d9a7f347bb232ca86daa40f2b (patch)
tree0b86da1541334bbd760c91a1d652957818a830ba /netwerk/base/nsStandardURL.cpp
parent565bf7514506110a53e37ca686a222527e1ed4e4 (diff)
downloaduxp-a1f143420203395d9a7f347bb232ca86daa40f2b.tar.gz
Remove Rust URL parser CAPI
Part 2 for #58
Diffstat (limited to 'netwerk/base/nsStandardURL.cpp')
-rw-r--r--netwerk/base/nsStandardURL.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/netwerk/base/nsStandardURL.cpp b/netwerk/base/nsStandardURL.cpp
index 922d8a3ba2..bc1350f28f 100644
--- a/netwerk/base/nsStandardURL.cpp
+++ b/netwerk/base/nsStandardURL.cpp
@@ -65,19 +65,6 @@ static LazyLogModule gStandardURLLog("nsStandardURL");
//----------------------------------------------------------------------------
-#ifdef MOZ_RUST_URLPARSE
-extern "C" int32_t c_fn_set_size(void * container, size_t size)
-{
- ((nsACString *) container)->SetLength(size);
- return 0;
-}
-
-extern "C" char * c_fn_get_buffer(void * container)
-{
- return ((nsACString *) container)->BeginWriting();
-}
-#endif
-
static nsresult
EncodeString(nsIUnicodeEncoder *encoder, const nsAFlatString &str, nsACString &result)
{