diff --git a/src/context/memory.rs b/src/context/memory.rs
index dc7b4ee37887ceccd5975f665eb29a513c2e8b85..cfac0113784dfe77395fa23d79a6b8df09f43235 100644
--- a/src/context/memory.rs
+++ b/src/context/memory.rs
@@ -298,9 +298,13 @@ impl Grant {
         self.owned
     }
 
+    pub fn region(&self) -> &Region {
+        &self.region
+    }
+
     /// Get a mutable reference to the region. This is unsafe, because a bad
     /// region could lead to the wrong addresses being unmapped.
-    pub unsafe fn region_mut(&mut self) -> &mut Region {
+    unsafe fn region_mut(&mut self) -> &mut Region {
         &mut self.region
     }
 
@@ -482,10 +486,6 @@ impl Grant {
         self.flags
     }
 
-    pub unsafe fn set_mapped(&mut self, mapped: bool) {
-        self.mapped = mapped;
-    }
-
     pub fn unmap(mut self) {
         assert!(self.mapped);