From 2590a640ce546d8fdce8dc864f929b53e6bb1138 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 24 Jul 2003 14:20:56 +0000 Subject: [PATCH] Remove unused fields git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274936 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/Target.java | 2 -- src/main/org/apache/tools/ant/filters/TailFilter.java | 6 ------ src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java | 4 ---- src/main/org/apache/tools/bzip2/CBZip2InputStream.java | 6 +----- src/main/org/apache/tools/bzip2/CBZip2OutputStream.java | 3 --- src/main/org/apache/tools/tar/TarEntry.java | 1 - src/main/org/apache/tools/zip/ZipFile.java | 3 +-- 7 files changed, 2 insertions(+), 23 deletions(-) diff --git a/src/main/org/apache/tools/ant/Target.java b/src/main/org/apache/tools/ant/Target.java index b1adff674..69cf71ff7 100644 --- a/src/main/org/apache/tools/ant/Target.java +++ b/src/main/org/apache/tools/ant/Target.java @@ -87,8 +87,6 @@ public class Target implements TaskContainer { private Project project; /** Description of this target, if any. */ private String description = null; - /** If adding top-level imported tasks */ - private boolean addingImportedTasks; /** Imported tasks/types being added */ private List importedTasks = null; diff --git a/src/main/org/apache/tools/ant/filters/TailFilter.java b/src/main/org/apache/tools/ant/filters/TailFilter.java index ab0034597..477606d80 100644 --- a/src/main/org/apache/tools/ant/filters/TailFilter.java +++ b/src/main/org/apache/tools/ant/filters/TailFilter.java @@ -82,9 +82,6 @@ public final class TailFilter extends BaseParamFilterReader /** Parameter name for the number of lines to be skipped. */ private static final String SKIP_KEY = "skip"; - /** Number of lines currently read in. */ - private long linesRead = 0; - /** Default number of lines to show */ private static final int DEFAULT_NUM_LINES = 10; @@ -97,9 +94,6 @@ public final class TailFilter extends BaseParamFilterReader /** Whether or not read-ahead been completed. */ private boolean completedReadAhead = false; - /** Current index position on the buffer. */ - private int bufferPos = 0; - /** A line tokenizer */ private LineTokenizer lineTokenizer = null; diff --git a/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java b/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java index 19d51f574..7d33888d7 100644 --- a/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java +++ b/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java @@ -136,10 +136,6 @@ public class EmailTask private Vector filesets = new Vector(); /** Character set for MimeMailer*/ private String charset = null; - /** if set to true, the email will not be actually sent */ - private boolean debugonly = false; - /** a location where to print the email message */ - private File debugoutput; /** User for SMTP auth */ private String user = null; /** Password for SMTP auth */ diff --git a/src/main/org/apache/tools/bzip2/CBZip2InputStream.java b/src/main/org/apache/tools/bzip2/CBZip2InputStream.java index 7e509df68..55fdd0613 100644 --- a/src/main/org/apache/tools/bzip2/CBZip2InputStream.java +++ b/src/main/org/apache/tools/bzip2/CBZip2InputStream.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2001-2002 The Apache Software Foundation. All rights + * Copyright (c) 2001-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -117,8 +117,6 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants { private boolean blockRandomised; - private int bytesIn; - private int bytesOut; private int bsBuff; private int bsLive; private CRC mCrc = new CRC(); @@ -314,8 +312,6 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants { bsStream = f; bsLive = 0; bsBuff = 0; - bytesOut = 0; - bytesIn = 0; } private int bsR(int n) { diff --git a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java index a117915fe..cbeea7218 100644 --- a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java +++ b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java @@ -272,7 +272,6 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants { boolean blockRandomised; - int bytesIn; int bytesOut; int bsBuff; int bsLive; @@ -440,7 +439,6 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants { private int blockCRC, combinedCRC; private void initialize() throws IOException { - bytesIn = 0; bytesOut = 0; nBlocksRandomised = 0; @@ -553,7 +551,6 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants { bsLive = 0; bsBuff = 0; bytesOut = 0; - bytesIn = 0; } private void bsFinishedWithStream() throws IOException { diff --git a/src/main/org/apache/tools/tar/TarEntry.java b/src/main/org/apache/tools/tar/TarEntry.java index bde05547b..f177e4f30 100644 --- a/src/main/org/apache/tools/tar/TarEntry.java +++ b/src/main/org/apache/tools/tar/TarEntry.java @@ -204,7 +204,6 @@ public class TarEntry implements TarConstants { boolean isDir = name.endsWith("/"); - this.checkSum = 0; this.devMajor = 0; this.devMinor = 0; this.name = new StringBuffer(name); diff --git a/src/main/org/apache/tools/zip/ZipFile.java b/src/main/org/apache/tools/zip/ZipFile.java index e3a0fee39..44a520b20 100644 --- a/src/main/org/apache/tools/zip/ZipFile.java +++ b/src/main/org/apache/tools/zip/ZipFile.java @@ -493,12 +493,11 @@ public class ZipFile { * range can be read. */ private class BoundedInputStream extends InputStream { - private long start, remaining; + private long remaining; private long loc; private boolean addDummyByte = false; BoundedInputStream(long start, long remaining) { - this.start = start; this.remaining = remaining; loc = start; }