vm_memory: Remove unused error type

This error hasn't been used for a while and now generates an unused
warning.

Change-Id: Ica4a26332966e12dff29f01c0e110c6a1262b23c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2947798
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
Dylan Reid 2021-06-08 13:09:08 -07:00 committed by Commit Bot
parent 41daa354c7
commit 6a1c64e1df

View file

@ -26,7 +26,6 @@ use crate::guest_address::GuestAddress;
#[derive(Debug)]
pub enum Error {
DescriptorChainOverflow,
InvalidGuestAddress(GuestAddress),
InvalidOffset(u64),
MemoryAccess(GuestAddress, MmapError),
@ -50,10 +49,6 @@ impl Display for Error {
use self::Error::*;
match self {
DescriptorChainOverflow => write!(
f,
"the combined length of all the buffers in a DescriptorChain is too large"
),
InvalidGuestAddress(addr) => write!(f, "invalid guest address {}", addr),
InvalidOffset(addr) => write!(f, "invalid offset {}", addr),
MemoryAccess(addr, e) => {