Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/format/js/ast_nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,6 @@ impl<'a> AsAstNodes<'a> for Func<'a> {
}
}

impl<'a> AsAstNodes<'a> for Class<'a> {
#[inline]
fn as_ast_nodes(self) -> AstNodes<'a> {
AstNodes::Class(self)
}
}

impl<'a> AsAstNodes<'a> for Param<'a> {
fn as_ast_nodes(self) -> AstNodes<'a> {
match self.func().and_then(Func::this_param) {
Expand Down
6 changes: 0 additions & 6 deletions src/sema/hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ define_id!(
ParenId,
);

impl From<Atom> for u32 {
#[inline]
fn from(v: Atom) -> u32 {
v.0
}
}
impl From<u32> for Atom {
#[inline]
fn from(v: u32) -> Atom {
Expand Down
12 changes: 0 additions & 12 deletions src/sema/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,12 @@ pub trait MaybeLocal {
fn is_local(&self) -> bool;
}

impl MaybeLocal for () {
#[inline]
fn is_local(&self) -> bool {
false
}
}
impl MaybeLocal for bool {
#[inline]
fn is_local(&self) -> bool {
false
}
}
impl MaybeLocal for u8 {
#[inline]
fn is_local(&self) -> bool {
false
}
}
impl<T: MaybeLocal> MaybeLocal for Option<T> {
#[inline]
fn is_local(&self) -> bool {
Expand Down
12 changes: 0 additions & 12 deletions src/sema/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,6 @@ impl Packed for () {
fn unpack(_: u32) {}
}

impl Packed for u8 {
type Cell = AtomicU32;
#[inline]
fn pack(self) -> u32 {
1 + u32::from(self)
}
#[inline]
fn unpack(raw: u32) -> u8 {
(raw - 1) as u8
}
}

impl Packed for (crate::types::TypeId, bool) {
type Cell = AtomicU32;
#[inline]
Expand Down
9 changes: 0 additions & 9 deletions src/sema/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3097,15 +3097,6 @@ impl<T: Follow> Follow for Option<T> {
}
}

impl<T: Follow> Follow for Box<T> {
fn visit<V: Visitor>(&self, visitor: &mut V) {
(**self).visit(visitor);
}
fn follow(&mut self, link: &Link) {
(**self).follow(link);
}
}

impl<T: Follow> Follow for [T] {
fn visit<V: Visitor>(&self, visitor: &mut V) {
visitor.plain(&self.len());
Expand Down
Loading