Remove unused <ContentNode>.getFileIdColumn() method

This commit is contained in:
Peter J. Martel 2011-11-18 19:04:19 -05:00
parent dc047d4798
commit 48154da58b
9 changed files with 1 additions and 53 deletions

View File

@ -97,14 +97,6 @@ abstract class AbstractContentNode<T extends Content> extends AbstractNode imple
public byte[] read(long offset, long len) throws TskException {
return content.read(offset, len);
}
/**
* Returns the location of the file ID / Metadata address on the columns on
* the directory table.
*
* @return
*/
abstract public int getFileIDColumn();
/**
* Returns the content of this node.
@ -238,6 +230,5 @@ abstract class AbstractContentNode<T extends Content> extends AbstractNode imple
public List<String> visit(VolumeSystem vs) {
return vs.getParent().accept(this);
}
}
}

View File

@ -65,14 +65,6 @@ public interface ContentNode {
*/
public byte[] read(long offset, long len) throws TskException;
/**
* Returns the location of the file ID / Metadata address on the columns on
* the directory table.
*
* @return
*/
public int getFileIDColumn();
/**
* Returns the content of this node.
*

View File

@ -100,11 +100,6 @@ public class DirectoryNode extends AbstractFsContentNode<Directory> {
return objs;
}
@Override
public int getFileIDColumn() {
return 1;
}
@Override
public <T> T accept(ContentNodeVisitor<T> v) {
return v.visit(this);

View File

@ -94,12 +94,7 @@ public class FileNode extends AbstractFsContentNode<File> {
});
return objs;
}
@Override
public int getFileIDColumn() {
return 1; // change this later when it's defined
}
@Override
public <T> T accept(ContentNodeVisitor<T> v) {
return v.visit(this);

View File

@ -79,11 +79,6 @@ public class ImageNode extends AbstractContentNode<Image> {
return objs;
}
@Override
public int getFileIDColumn() {
return 0;
}
@Override
public Cookie getCookie(Class clazz) {
Children ch = getChildren();

View File

@ -90,11 +90,6 @@ public class VolumeNode extends AbstractContentNode<Volume> {
return objs;
}
@Override
public int getFileIDColumn() {
return 1;
}
/**
* Right click action for volume node
*

View File

@ -205,11 +205,6 @@ public class DataResultFilterNode extends FilterNode implements ContentNode {
return ((ContentNode) currentNode).read(offset, len);
}
@Override
public int getFileIDColumn() {
return ((ContentNode) currentNode).getFileIDColumn();
}
@Override
public Content getContent() {
return ((ContentNode) currentNode).getContent();

View File

@ -111,11 +111,6 @@ public class DataResultFilterNode extends FilterNode implements ContentNode {
return ((ContentNode) currentNode).read(offset, len);
}
@Override
public int getFileIDColumn() {
return ((ContentNode) currentNode).getFileIDColumn();
}
@Override
public Content getContent() {
return ((ContentNode) currentNode).getContent();

View File

@ -90,11 +90,6 @@ class SearchNode extends AbstractNode implements ContentNode {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public int getFileIDColumn() {
return -1; // change this later when needed
}
@Override
public Content getContent() {
return null;