From f17efae74164b0533ff304498fdfa0ce81e57fbf Mon Sep 17 00:00:00 2001 From: Alberto Fernandez Date: Fri, 19 Jan 2024 20:22:29 +0100 Subject: [PATCH] Remove unused private field --- src/main/java/com/linuxense/javadbf/DBFReader.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/com/linuxense/javadbf/DBFReader.java b/src/main/java/com/linuxense/javadbf/DBFReader.java index 7e1d428..6b6c104 100644 --- a/src/main/java/com/linuxense/javadbf/DBFReader.java +++ b/src/main/java/com/linuxense/javadbf/DBFReader.java @@ -149,7 +149,6 @@ public class DBFReader extends DBFBase implements Closeable { private DBFHeader header; private boolean trimRightSpaces = true; private int internalRecord = 0; - private int returnedRecords = 0; private DBFMemoFile memoFile = null; @@ -390,7 +389,6 @@ public Object[] nextRecord() { } catch (IOException e) { throw new DBFException(e.getMessage(), e); } - this.returnedRecords++; this.internalRecord++; return recordObjects.toArray(); } @@ -546,7 +544,6 @@ public void skipRecords(int recordsToSkip) throws IOException { if (showDeletedRows) { skip(recordsToSkip * this.header.recordLength); this.internalRecord+=recordsToSkip; - this.returnedRecords+=recordsToSkip; } else { for (int i = 0; i < recordsToSkip; i++) { @@ -569,7 +566,6 @@ public void skipRecords(int recordsToSkip) throws IOException { return; } } - this.returnedRecords++; } } }