summaryrefslogtreecommitdiffstats
path: root/src/libs/kdtools
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-06-24 14:14:46 +0200
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-06-25 15:33:04 +0000
commit0a229c256cfdc69e4209bc34290a8b657fa6fc6c (patch)
tree9328b48c76722dd1c861e313bd319bbb4fdadf4f /src/libs/kdtools
parent38bd4ceae105f45dc4cb42ddea65fcc16f946830 (diff)
Remove superfluous clone() method. Prepare for next patch.
Task-number: QTIFW-180 Change-Id: I6aa8b409e323d14e353a1f80b0b2ec54daad184f Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/kdtools')
-rw-r--r--src/libs/kdtools/kdupdaterupdateoperation.cpp6
-rw-r--r--src/libs/kdtools/kdupdaterupdateoperation.h1
-rw-r--r--src/libs/kdtools/kdupdaterupdateoperations.cpp34
-rw-r--r--src/libs/kdtools/kdupdaterupdateoperations.h7
4 files changed, 0 insertions, 48 deletions
diff --git a/src/libs/kdtools/kdupdaterupdateoperation.cpp b/src/libs/kdtools/kdupdaterupdateoperation.cpp
index 0c6621271..285f0c188 100644
--- a/src/libs/kdtools/kdupdaterupdateoperation.cpp
+++ b/src/libs/kdtools/kdupdaterupdateoperation.cpp
@@ -388,12 +388,6 @@ bool UpdateOperation::deleteFileNowOrLater(const QString &file, QString *errorSt
*/
/*!
- \fn virtual bool KDUpdater::UpdateOperation::clone() const = 0;
-
- Subclasses must implement this function to clone the current operation.
-*/
-
-/*!
Saves operation arguments and values as an XML document and returns the
document. You can override this method to store your
own extra-data. Extra-data can be any data that you need to store to perform or undo the
diff --git a/src/libs/kdtools/kdupdaterupdateoperation.h b/src/libs/kdtools/kdupdaterupdateoperation.h
index 3f2901b80..1b5e37c85 100644
--- a/src/libs/kdtools/kdupdaterupdateoperation.h
+++ b/src/libs/kdtools/kdupdaterupdateoperation.h
@@ -85,7 +85,6 @@ public:
virtual bool performOperation() = 0;
virtual bool undoOperation() = 0;
virtual bool testOperation() = 0;
- virtual UpdateOperation *clone() const = 0;
virtual QDomDocument toXml() const;
virtual bool fromXml(const QString &xml);
diff --git a/src/libs/kdtools/kdupdaterupdateoperations.cpp b/src/libs/kdtools/kdupdaterupdateoperations.cpp
index 944679070..093733337 100644
--- a/src/libs/kdtools/kdupdaterupdateoperations.cpp
+++ b/src/libs/kdtools/kdupdaterupdateoperations.cpp
@@ -235,11 +235,6 @@ bool CopyOperation::testOperation()
return true;
}
-CopyOperation *CopyOperation::clone() const
-{
- return new CopyOperation();
-}
-
////////////////////////////////////////////////////////////////////////////
// KDUpdater::MoveOperation
@@ -342,11 +337,6 @@ bool MoveOperation::testOperation()
return true;
}
-MoveOperation *MoveOperation::clone() const
-{
- return new MoveOperation;
-}
-
////////////////////////////////////////////////////////////////////////////
// KDUpdater::DeleteOperation
@@ -402,11 +392,6 @@ bool DeleteOperation::testOperation()
return true;
}
-DeleteOperation *DeleteOperation::clone() const
-{
- return new DeleteOperation;
-}
-
/*!
\reimp
*/
@@ -516,10 +501,6 @@ bool KDUpdater::MkdirOperation::testOperation()
return true;
}
-MkdirOperation *MkdirOperation::clone() const
-{
- return new MkdirOperation;
-}
////////////////////////////////////////////////////////////////////////////
// KDUpdater::RmdirOperation
@@ -583,11 +564,6 @@ bool RmdirOperation::testOperation()
return true;
}
-RmdirOperation *RmdirOperation::clone() const
-{
- return new RmdirOperation;
-}
-
////////////////////////////////////////////////////////////////////////////
// KDUpdater::AppendFileOperation
@@ -694,11 +670,6 @@ bool AppendFileOperation::testOperation()
return true;
}
-AppendFileOperation *AppendFileOperation::clone() const
-{
- return new AppendFileOperation;
-}
-
////////////////////////////////////////////////////////////////////////////
// KDUpdater::PrependFileOperation
@@ -806,8 +777,3 @@ bool PrependFileOperation::testOperation()
// TODO
return true;
}
-
-PrependFileOperation *PrependFileOperation::clone() const
-{
- return new PrependFileOperation;
-}
diff --git a/src/libs/kdtools/kdupdaterupdateoperations.h b/src/libs/kdtools/kdupdaterupdateoperations.h
index 4eafed744..c04105c82 100644
--- a/src/libs/kdtools/kdupdaterupdateoperations.h
+++ b/src/libs/kdtools/kdupdaterupdateoperations.h
@@ -49,7 +49,6 @@ public:
bool performOperation();
bool undoOperation();
bool testOperation();
- CopyOperation *clone() const;
QDomDocument toXml() const;
private:
@@ -67,7 +66,6 @@ public:
bool performOperation();
bool undoOperation();
bool testOperation();
- MoveOperation *clone() const;
};
class KDTOOLS_EXPORT DeleteOperation : public UpdateOperation
@@ -80,7 +78,6 @@ public:
bool performOperation();
bool undoOperation();
bool testOperation();
- DeleteOperation *clone() const;
QDomDocument toXml() const;
};
@@ -94,7 +91,6 @@ public:
bool performOperation();
bool undoOperation();
bool testOperation();
- MkdirOperation *clone() const;
};
class KDTOOLS_EXPORT RmdirOperation : public UpdateOperation
@@ -106,7 +102,6 @@ public:
bool performOperation();
bool undoOperation();
bool testOperation();
- RmdirOperation *clone() const;
};
class KDTOOLS_EXPORT AppendFileOperation : public UpdateOperation
@@ -118,7 +113,6 @@ public:
bool performOperation();
bool undoOperation();
bool testOperation();
- AppendFileOperation *clone() const;
};
class KDTOOLS_EXPORT PrependFileOperation : public UpdateOperation
@@ -130,7 +124,6 @@ public:
bool performOperation();
bool undoOperation();
bool testOperation();
- PrependFileOperation *clone() const;
};
} // namespace KDUpdater