aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/webrender/wr_malloc_size_of
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webrender/wr_malloc_size_of')
-rw-r--r--third_party/webrender/wr_malloc_size_of/lib.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/third_party/webrender/wr_malloc_size_of/lib.rs b/third_party/webrender/wr_malloc_size_of/lib.rs
index abd982ffe80..2a345089740 100644
--- a/third_party/webrender/wr_malloc_size_of/lib.rs
+++ b/third_party/webrender/wr_malloc_size_of/lib.rs
@@ -17,7 +17,6 @@ use std::hash::{BuildHasher, Hash};
use std::mem::size_of;
use std::ops::Range;
use std::os::raw::c_void;
-use std::path::PathBuf;
/// A C function that takes a pointer to a heap allocation and returns its size.
type VoidPtrToSizeFn = unsafe extern "C" fn(ptr: *const c_void) -> usize;
@@ -311,15 +310,6 @@ impl<T> MallocSizeOf for std::marker::PhantomData<T> {
}
}
-impl MallocSizeOf for PathBuf {
- fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
- match self.to_str() {
- Some(s) => unsafe { ops.malloc_size_of(s.as_ptr()) },
- None => self.as_os_str().len(),
- }
- }
-}
-
impl<T: MallocSizeOf, Unit> MallocSizeOf for euclid::Length<T, Unit> {
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
self.0.size_of(ops)