瀏覽代碼

Fixed build error and removed useless upload function from xnatTreeModel

Andreas Fetzer 10 年之前
父節點
當前提交
686d887f57
共有 2 個文件被更改,包括 0 次插入15 次删除
  1. 0 14
      Libs/XNAT/Core/ctkXnatTreeModel.cpp
  2. 0 1
      Libs/XNAT/Core/ctkXnatTreeModel.h

+ 0 - 14
Libs/XNAT/Core/ctkXnatTreeModel.cpp

@@ -296,17 +296,3 @@ void ctkXnatTreeModel::downloadFile(const QModelIndex& index, const QString& zip
 
   return;
 }
-
-//----------------------------------------------------------------------------
-void ctkXnatTreeModel::uploadFile(const QModelIndex& index, const QString& zipFileName)
-{
-  if (!index.isValid())
-  {
-    return;
-  }
-
-  ctkXnatObject* xnatObject = this->xnatObject(index);
-  ctkXnatObject* child = xnatObject->children()[index.row()];
-
-  child->upload(zipFileName);
-}

+ 0 - 1
Libs/XNAT/Core/ctkXnatTreeModel.h

@@ -57,7 +57,6 @@ public:
 
   bool removeAllRows(const QModelIndex& parent);
 
-  void uploadFile(const QModelIndex& index, const QString& zipFilename);
   void downloadFile (const QModelIndex& index, const QString& zipFilename);
 
 private: