Skip to content

Ghidra is a software reverse engineering (SRE) framework

Remove unused File field.

Wizd42bfcbf4e0e
diff --git a/GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GRandomAccessFile.java b/GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GRandomAccessFile.java
index 0cb5a84bc0..2c2b80f16c 100644
--- a/GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GRandomAccessFile.java
+++ b/GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GRandomAccessFile.java
@@ -17,7 +17,6 @@ public class GRandomAccessFile {
private static final byte[] EMPTY = new byte[0];
private static final int BUFFER_SIZE = 0x100000;
- private File file;
private RandomAccessFile randomAccessFile;
private byte[] buffer = EMPTY;
private long bufferOffset = 0;
@@ -77,7 +76,6 @@ public class GRandomAccessFile {
* while opening or creating the file
*/
public GRandomAccessFile(File file, String mode) throws IOException {
- this.file = file;
randomAccessFile = new RandomAccessFile(file, mode);
this.open = true;
}