Browse Source

Fixed build error and removed useless upload function from xnatTreeModel

Andreas Fetzer 10 years ago
parent
commit
686d887f57
2 changed files with 0 additions and 15 deletions
  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: