diff options
Diffstat (limited to 'plugins/CopyEngine/Ultracopier-0.3/ListThread_InodeAction.cpp')
-rw-r--r-- | plugins/CopyEngine/Ultracopier-0.3/ListThread_InodeAction.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/plugins/CopyEngine/Ultracopier-0.3/ListThread_InodeAction.cpp b/plugins/CopyEngine/Ultracopier-0.3/ListThread_InodeAction.cpp deleted file mode 100644 index 0f4c2f4..0000000 --- a/plugins/CopyEngine/Ultracopier-0.3/ListThread_InodeAction.cpp +++ /dev/null @@ -1,58 +0,0 @@ -/** \file ListThread_InodeAction.cpp -\brief To be included into ListThread.cpp, to optimize and prevent code duplication -\see ListThread.cpp -\author alpha_one_x86 -\version 0.3 -\date 2011 */ - -#ifdef LISTTHREAD_H - -//do the inode action -actionToDoInode& currentActionToDoInode=actionToDoListInode[int_for_internal_loop]; -switch(currentActionToDoInode.type) -{ -case ActionType_MkPath: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("launch mkpath: %1").arg(currentActionToDoInode.folder.absoluteFilePath())); - mkPathQueue.addPath(currentActionToDoInode.folder.absoluteFilePath()); - currentActionToDoInode.isRunning=true; - numberOfInodeOperation++; - if(numberOfInodeOperation>=ULTRACOPIER_PLUGIN_MAXPARALLELINODEOPT) - return; -break; -case ActionType_RmPath: -/* What is this code? - if((int_for_loop+number_rm_path_moved)>=(loop_size-1)) - { - if(numberOfTranferRuning) - break; - else - currentActionToDoInode.size=0; - }*/ - //then empty (no file), can try remove it - if(true)//currentActionToDoInode.size==0 - { - if(numberOfTranferRuning>0) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,QString("skipped because already inode = 0 and transfer is running: %1").arg(currentActionToDoInode.folder.absoluteFilePath())); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("launch rmpath: %1").arg(currentActionToDoInode.folder.absoluteFilePath())); - rmPathQueue.addPath(currentActionToDoInode.folder.absoluteFilePath()); - currentActionToDoInode.isRunning=true; - numberOfInodeOperation++; - if(numberOfInodeOperation>=ULTRACOPIER_PLUGIN_MAXPARALLELINODEOPT) - return; - } - else //have not finish all the transfer into it, do it later - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"should never pass here"); - /*actionToDoListInode.move(int_for_internal_loop,actionToDoListInode_count-1); - currentActionToDoInode.id=generateIdNumber(); - number_rm_path_moved++; - currentActionToDoInode.size=0; - continue;*/ - } -break; -default: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,QString("Wrong type at inode action")); - return; -} - -#endif |