Skip to content

Commit

Permalink
remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jul 29, 2023
1 parent 48d8774 commit 42642ec
Showing 1 changed file with 0 additions and 88 deletions.
88 changes: 0 additions & 88 deletions src/drivers/net/virtio_net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1191,50 +1191,6 @@ pub mod constants {
}
}

impl BitOr for NetHdrFlag {
type Output = u8;

fn bitor(self, rhs: Self) -> Self::Output {
u8::from(self) | u8::from(rhs)
}
}

impl BitOr<NetHdrFlag> for u8 {
type Output = u8;

fn bitor(self, rhs: NetHdrFlag) -> Self::Output {
self | u8::from(rhs)
}
}

impl BitOrAssign<NetHdrFlag> for u8 {
fn bitor_assign(&mut self, rhs: NetHdrFlag) {
*self |= u8::from(rhs);
}
}

impl BitAnd for NetHdrFlag {
type Output = u8;

fn bitand(self, rhs: NetHdrFlag) -> Self::Output {
u8::from(self) & u8::from(rhs)
}
}

impl BitAnd<NetHdrFlag> for u8 {
type Output = u8;

fn bitand(self, rhs: NetHdrFlag) -> Self::Output {
self & u8::from(rhs)
}
}

impl BitAndAssign<NetHdrFlag> for u8 {
fn bitand_assign(&mut self, rhs: NetHdrFlag) {
*self &= u8::from(rhs);
}
}

/// Enum containing Virtios netword GSO types
///
/// See Virtio specification v1.1. - 5.1.6
Expand Down Expand Up @@ -1266,50 +1222,6 @@ pub mod constants {
}
}

impl BitOr for NetHdrGSO {
type Output = u8;

fn bitor(self, rhs: Self) -> Self::Output {
u8::from(self) | u8::from(rhs)
}
}

impl BitOr<NetHdrGSO> for u8 {
type Output = u8;

fn bitor(self, rhs: NetHdrGSO) -> Self::Output {
self | u8::from(rhs)
}
}

impl BitOrAssign<NetHdrGSO> for u8 {
fn bitor_assign(&mut self, rhs: NetHdrGSO) {
*self |= u8::from(rhs);
}
}

impl BitAnd for NetHdrGSO {
type Output = u8;

fn bitand(self, rhs: NetHdrGSO) -> Self::Output {
u8::from(self) & u8::from(rhs)
}
}

impl BitAnd<NetHdrGSO> for u8 {
type Output = u8;

fn bitand(self, rhs: NetHdrGSO) -> Self::Output {
self & u8::from(rhs)
}
}

impl BitAndAssign<NetHdrGSO> for u8 {
fn bitand_assign(&mut self, rhs: NetHdrGSO) {
*self &= u8::from(rhs);
}
}

/// Enum contains virtio's network device features and general features of Virtio.
///
/// See Virtio specification v1.1. - 5.1.3
Expand Down

0 comments on commit 42642ec

Please sign in to comment.