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; private Project project;
/** Description of this target, if any. */ /** Description of this target, if any. */
private String description = null; private String description = null;
/** If adding top-level imported tasks */
private boolean addingImportedTasks;
/** Imported tasks/types being added */ /** Imported tasks/types being added */
private List importedTasks = null; 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. */ /** Parameter name for the number of lines to be skipped. */
private static final String SKIP_KEY = "skip"; private static final String SKIP_KEY = "skip";


/** Number of lines currently read in. */
private long linesRead = 0;

/** Default number of lines to show */ /** Default number of lines to show */
private static final int DEFAULT_NUM_LINES = 10; 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. */ /** Whether or not read-ahead been completed. */
private boolean completedReadAhead = false; private boolean completedReadAhead = false;


/** Current index position on the buffer. */
private int bufferPos = 0;

/** A line tokenizer */ /** A line tokenizer */
private LineTokenizer lineTokenizer = null; 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(); private Vector filesets = new Vector();
/** Character set for MimeMailer*/ /** Character set for MimeMailer*/
private String charset = null; 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 */ /** User for SMTP auth */
private String user = null; private String user = null;
/** Password for SMTP auth */ /** 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 * 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. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * 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 boolean blockRandomised;


private int bytesIn;
private int bytesOut;
private int bsBuff; private int bsBuff;
private int bsLive; private int bsLive;
private CRC mCrc = new CRC(); private CRC mCrc = new CRC();
@@ -314,8 +312,6 @@ public class CBZip2InputStream extends InputStream implements BZip2Constants {
bsStream = f; bsStream = f;
bsLive = 0; bsLive = 0;
bsBuff = 0; bsBuff = 0;
bytesOut = 0;
bytesIn = 0;
} }


private int bsR(int n) { 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; boolean blockRandomised;


int bytesIn;
int bytesOut; int bytesOut;
int bsBuff; int bsBuff;
int bsLive; int bsLive;
@@ -440,7 +439,6 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
private int blockCRC, combinedCRC; private int blockCRC, combinedCRC;


private void initialize() throws IOException { private void initialize() throws IOException {
bytesIn = 0;
bytesOut = 0; bytesOut = 0;
nBlocksRandomised = 0; nBlocksRandomised = 0;


@@ -553,7 +551,6 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
bsLive = 0; bsLive = 0;
bsBuff = 0; bsBuff = 0;
bytesOut = 0; bytesOut = 0;
bytesIn = 0;
} }


private void bsFinishedWithStream() throws IOException { 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("/"); boolean isDir = name.endsWith("/");


this.checkSum = 0;
this.devMajor = 0; this.devMajor = 0;
this.devMinor = 0; this.devMinor = 0;
this.name = new StringBuffer(name); 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. * range can be read.
*/ */
private class BoundedInputStream extends InputStream { private class BoundedInputStream extends InputStream {
private long start, remaining;
private long remaining;
private long loc; private long loc;
private boolean addDummyByte = false; private boolean addDummyByte = false;


BoundedInputStream(long start, long remaining) { BoundedInputStream(long start, long remaining) {
this.start = start;
this.remaining = remaining; this.remaining = remaining;
loc = start; loc = start;
} }


Loading…
Cancel
Save