This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH setup 11/15] Remove useless PackageSpecification methods


Remove unused PackageSpecification::serialise()

Remove dangerous PackageSpecification::operator= which doesn't copy all
object state
---
 PackageSpecification.cc | 13 -------------
 PackageSpecification.h  |  3 ---
 2 files changed, 16 deletions(-)

diff --git a/PackageSpecification.cc b/PackageSpecification.cc
index f59b11b..247f3da 100644
--- a/PackageSpecification.cc
+++ b/PackageSpecification.cc
@@ -70,19 +70,6 @@ PackageSpecification::satisfies (packageversion const &aPackage) const
   return true;
 }
 
-std::string
-PackageSpecification::serialise () const
-{
-  return _packageName;
-}
-
-PackageSpecification &
-PackageSpecification::operator= (PackageSpecification const &rhs)
-{
-  _packageName = rhs._packageName;
-  return *this;
-}
-
 std::ostream &
 operator << (std::ostream &os, PackageSpecification const &spec)
 {
diff --git a/PackageSpecification.h b/PackageSpecification.h
index a26431a..4c3ed6d 100644
--- a/PackageSpecification.h
+++ b/PackageSpecification.h
@@ -43,9 +43,6 @@ public:
   void setVersion (const std::string& );
 
   bool satisfies (packageversion const &) const;
-  std::string serialise () const;
-
-  PackageSpecification &operator= (PackageSpecification const &);
 
   friend std::ostream &operator << (std::ostream &, PackageSpecification const &);
 
-- 
2.12.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]