瀏覽代碼

remove duplicate vec utils defined in the read_impls

Evan Almloff 1 年之前
父節點
當前提交
84e76dbdce
共有 1 個文件被更改,包括 0 次插入14 次删除
  1. 0 14
      packages/signals/src/impls.rs

+ 0 - 14
packages/signals/src/impls.rs

@@ -52,20 +52,6 @@ macro_rules! read_impls {
                 self.with(|v| *v == *other)
             }
         }
-
-        impl<T: $($extra_bounds + )? 'static $(,$vec_bound_ty: $vec_bound)?> $ty<Vec<T>, $($vec_bound_ty)?> {
-            /// Returns the length of the inner vector.
-            #[track_caller]
-            pub fn len(&self) -> usize {
-                self.with(|v| v.len())
-            }
-
-            /// Returns true if the inner vector is empty.
-            #[track_caller]
-            pub fn is_empty(&self) -> bool {
-                self.with(|v| v.is_empty())
-            }
-        }
     };
 }