Changeset 11241 for trunk/gli


Ignore:
Timestamp:
2006-02-14T14:04:38+13:00 (18 years ago)
Author:
mdewsnip
Message:

Removed the unused folder_level variable from FileJob.

Location:
trunk/gli/src/org/greenstone/gatherer/file
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileJob.java

    r11081 r11241  
    3838    public boolean done = false;
    3939
    40     public boolean folder_level = false;
    4140    /** The type of this movement as an byte. */
    4241    public byte type = 0;
  • trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r11073 r11241  
    168168        boolean cancelled = file_queue.calculateSize(source_nodes);
    169169        if (!cancelled) {
    170         file_queue.addJob(id, source, source_nodes, target, target_node, type, true);
     170        file_queue.addJob(id, source, source_nodes, target, target_node, type);
    171171        if (Gatherer.isGsdlRemote) {
    172172            String collection_name = Gatherer.c_man.getCollection().getName();
  • trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java

    r11086 r11241  
    9898     * @param type The type of this movement as an int, either COPY or DELETE.
    9999     */
    100     public void addJob(long id, DragComponent source, FileNode[] children, DragComponent target, FileNode parent, byte type, boolean folder_level)
     100    public void addJob(long id, DragComponent source, FileNode[] children, DragComponent target, FileNode parent, byte type)
    101101    {
    102102    // Queue the sub-job(s) (this may fail if we are asked to delete a read only file)
    103103    for (int i = 0; i < children.length; i++) {
    104         addJob(id, source, children[i], target, parent, type, folder_level, -1);
     104        addJob(id, source, children[i], target, parent, type, -1);
    105105    }
    106106    }
    107107   
    108     synchronized private void addJob(long id, DragComponent source, FileNode child, DragComponent target, FileNode parent, byte type, boolean folder_level, int position) {
     108    synchronized private void addJob(long id, DragComponent source, FileNode child, DragComponent target, FileNode parent, byte type, int position) {
    109109    FileJob job = new FileJob(id, source, child, target, parent, type);
    110     job.folder_level = folder_level;
    111110    DebugStream.println("Adding job: " + job);
    112111    if(position != -1 && position <= queue.size() + 1) {
Note: See TracChangeset for help on using the changeset viewer.