@@ -201,8 +201,6 @@ static class Header {
201201   */ 
202202  private  long  offset  = UNSET ;
203203
204-   private  MemoryType  memType  = MemoryType .EXCLUSIVE ;
205- 
206204  /** 
207205   * The on-disk size of the next block, including the header and checksums if present. 
208206   * UNSET if unknown. 
@@ -274,7 +272,7 @@ private BlockDeserializer() {
274272    }
275273
276274    @ Override 
277-     public  HFileBlock  deserialize (ByteBuff  buf , ByteBuffAllocator  alloc ,  MemoryType   memType )
275+     public  HFileBlock  deserialize (ByteBuff  buf , ByteBuffAllocator  alloc )
278276        throws  IOException  {
279277      // The buf has the file block followed by block metadata. 
280278      // Set limit to just before the BLOCK_METADATA_SPACE then rewind. 
@@ -287,8 +285,7 @@ public HFileBlock deserialize(ByteBuff buf, ByteBuffAllocator alloc, MemoryType
287285      boolean  usesChecksum  = buf .get () == (byte ) 1 ;
288286      long  offset  = buf .getLong ();
289287      int  nextBlockOnDiskSize  = buf .getInt ();
290-       return  new  HFileBlock (newByteBuff , usesChecksum , memType , offset , nextBlockOnDiskSize , null ,
291-           alloc );
288+       return  new  HFileBlock (newByteBuff , usesChecksum , offset , nextBlockOnDiskSize , null , alloc );
292289    }
293290
294291    @ Override 
@@ -366,7 +363,7 @@ public HFileBlock(BlockType blockType, int onDiskSizeWithoutHeader,
366363   * to that point. 
367364   * @param buf Has header, content, and trailing checksums if present. 
368365   */ 
369-   HFileBlock (ByteBuff  buf , boolean  usesHBaseChecksum , MemoryType   memType ,  final  long  offset ,
366+   HFileBlock (ByteBuff  buf , boolean  usesHBaseChecksum , final  long  offset ,
370367      final  int  nextBlockOnDiskSize , HFileContext  fileContext , ByteBuffAllocator  allocator )
371368      throws  IOException  {
372369    buf .rewind ();
@@ -398,7 +395,6 @@ public HFileBlock(BlockType blockType, int onDiskSizeWithoutHeader,
398395    assert  usesHBaseChecksum  == fileContext .isUseHBaseChecksum ();
399396    init (blockType , onDiskSizeWithoutHeader , uncompressedSizeWithoutHeader , prevBlockOffset , offset ,
400397      onDiskDataSizeWithHeader , nextBlockOnDiskSize , fileContext , allocator );
401-     this .memType  = memType ;
402398    this .offset  = offset ;
403399    this .buf  = buf ;
404400    this .buf .rewind ();
@@ -1785,8 +1781,8 @@ protected HFileBlock readBlockDataInternal(FSDataInputStream is, long offset,
17851781        // The onDiskBlock will become the headerAndDataBuffer for this block. 
17861782        // If nextBlockOnDiskSizeWithHeader is not zero, the onDiskBlock already 
17871783        // contains the header of next block, so no need to set next block's header in it. 
1788-         HFileBlock  hFileBlock  = new  HFileBlock (curBlock , checksumSupport , MemoryType . EXCLUSIVE ,
1789-             offset ,  nextBlockOnDiskSize , fileContext , intoHeap  ? HEAP : allocator );
1784+         HFileBlock  hFileBlock  = new  HFileBlock (curBlock , checksumSupport , offset ,
1785+             nextBlockOnDiskSize , fileContext , intoHeap  ? HEAP   : allocator );
17901786        // Run check on uncompressed sizings. 
17911787        if  (!fileContext .isCompressedOrEncrypted ()) {
17921788          hFileBlock .sanityCheckUncompressed ();
@@ -2060,18 +2056,6 @@ HFileContext getHFileContext() {
20602056    return  this .fileContext ;
20612057  }
20622058
2063-   @ Override 
2064-   public  MemoryType  getMemoryType () {
2065-     return  this .memType ;
2066-   }
2067- 
2068-   /** 
2069-    * @return true if this block is backed by a shared memory area(such as that of a BucketCache). 
2070-    */ 
2071-   boolean  usesSharedMemory () {
2072-     return  this .memType  == MemoryType .SHARED ;
2073-   }
2074- 
20752059  /** 
20762060   * Convert the contents of the block header into a human readable string. 
20772061   * This is mostly helpful for debugging. This assumes that the block 
0 commit comments