[Cmake-commits] CMake branch, next, updated. v2.8.11.1-2606-gdfc0105

Stephen Kelly steveire at gmail.com
Wed Jun 12 08:09:29 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  dfc01051fc5733a48e5ddabecbb587d451f19864 (commit)
       via  91b4d01e90aad80413f20440b2a5e6319abd41ba (commit)
      from  f1c558b1e3a79800b6df6ec93bea25b7c88a5879 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dfc01051fc5733a48e5ddabecbb587d451f19864
commit dfc01051fc5733a48e5ddabecbb587d451f19864
Merge: f1c558b 91b4d01
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Wed Jun 12 08:09:28 2013 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Jun 12 08:09:28 2013 -0400

    Merge topic 'version-compare-genex' into next
    
    91b4d01 Remove unused function.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=91b4d01e90aad80413f20440b2a5e6319abd41ba
commit 91b4d01e90aad80413f20440b2a5e6319abd41ba
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Wed Jun 12 14:08:46 2013 +0200
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Wed Jun 12 14:08:46 2013 +0200

    Remove unused function.

diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index d4b6a6c..57cec5b 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -406,38 +406,6 @@ namespace
   }
 
   //=========================================================================
-  enum Op { OpLess, OpEqual, OpGreater };
-  bool HandleVersionCompare(Op op, const char* lhs_str, const char* rhs_str)
-  {
-  // Parse out up to 8 components.
-  unsigned int lhs[8] = {0,0,0,0,0,0,0,0};
-  unsigned int rhs[8] = {0,0,0,0,0,0,0,0};
-  sscanf(lhs_str, "%u.%u.%u.%u.%u.%u.%u.%u",
-         &lhs[0], &lhs[1], &lhs[2], &lhs[3],
-         &lhs[4], &lhs[5], &lhs[6], &lhs[7]);
-  sscanf(rhs_str, "%u.%u.%u.%u.%u.%u.%u.%u",
-         &rhs[0], &rhs[1], &rhs[2], &rhs[3],
-         &rhs[4], &rhs[5], &rhs[6], &rhs[7]);
-
-  // Do component-wise comparison.
-  for(unsigned int i=0; i < 8; ++i)
-    {
-    if(lhs[i] < rhs[i])
-      {
-      // lhs < rhs, so true if operation is LESS
-      return op == OpLess;
-      }
-    else if(lhs[i] > rhs[i])
-      {
-      // lhs > rhs, so true if operation is GREATER
-      return op == OpGreater;
-      }
-    }
-  // lhs == rhs, so true if operation is EQUAL
-  return op == OpEqual;
-  }
-
-  //=========================================================================
   // level 0 processes parenthetical expressions
   bool HandleLevel0(std::list<std::string> &newArgs,
                     cmMakefile *makefile,

-----------------------------------------------------------------------

Summary of changes:
 Source/cmIfCommand.cxx |   32 --------------------------------
 1 files changed, 0 insertions(+), 32 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list