rialto: remove Error::PageTableMapping
This error variant is never actually constructed, and it is the only use
of the aarch64_paging crate within rialto.
Bug: 362733888
Test: m rialto_bin # for aosp_arm64
Flag: EXEMPT refactor
Change-Id: I333b9423e581e3b84261c4160591cf7e6fed2527
diff --git a/guest/rialto/src/error.rs b/guest/rialto/src/error.rs
index f021c36..60ba0e3 100644
--- a/guest/rialto/src/error.rs
+++ b/guest/rialto/src/error.rs
@@ -14,7 +14,6 @@
//! This module contains the error thrown by Rialto.
-use aarch64_paging::MapError;
use core::{fmt, result};
use diced_open_dice::DiceError;
use hypervisor_backends::Error as HypervisorError;
@@ -31,8 +30,6 @@
pub enum Error {
/// Hypervisor error.
Hypervisor(HypervisorError),
- /// Failed when attempting to map some range in the page table.
- PageTableMapping(MapError),
/// Invalid FDT.
InvalidFdt(FdtError),
/// Invalid PCI.
@@ -61,9 +58,6 @@
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Self::Hypervisor(e) => write!(f, "Hypervisor error: {e}."),
- Self::PageTableMapping(e) => {
- write!(f, "Failed when attempting to map some range in the page table: {e}.")
- }
Self::InvalidFdt(e) => write!(f, "Invalid FDT: {e}"),
Self::InvalidPci(e) => write!(f, "Invalid PCI: {e}"),
Self::MemoryOperationFailed(e) => write!(f, "Failed memory operation: {e}"),
@@ -89,12 +83,6 @@
}
}
-impl From<MapError> for Error {
- fn from(e: MapError) -> Self {
- Self::PageTableMapping(e)
- }
-}
-
impl From<FdtError> for Error {
fn from(e: FdtError) -> Self {
Self::InvalidFdt(e)