Browse Source

Remove unused fields

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274936 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
2590a640ce
7 changed files with 2 additions and 23 deletions
  1. +0
    -2
      src/main/org/apache/tools/ant/Target.java
  2. +0
    -6
      src/main/org/apache/tools/ant/filters/TailFilter.java
  3. +0
    -4
      src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java
  4. +1
    -5
      src/main/org/apache/tools/bzip2/CBZip2InputStream.java
  5. +0
    -3
      src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
  6. +0
    -1
      src/main/org/apache/tools/tar/TarEntry.java
  7. +1
    -2
      src/main/org/apache/tools/zip/ZipFile.java

+ 0
- 2
src/main/org/apache/tools/ant/Target.java View File

@@ -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;



+ 0
- 6
src/main/org/apache/tools/ant/filters/TailFilter.java View File

@@ -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;



+ 0
- 4
src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java View File

@@ -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 */


+ 1
- 5
src/main/org/apache/tools/bzip2/CBZip2InputStream.java View File

@@ -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) {


+ 0
- 3
src/main/org/apache/tools/bzip2/CBZip2OutputStream.java View File

@@ -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 {


+ 0
- 1
src/main/org/apache/tools/tar/TarEntry.java View File

@@ -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);


+ 1
- 2
src/main/org/apache/tools/zip/ZipFile.java View File

@@ -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;
}


Loading…
Cancel
Save