lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [4897] Remove a disused member


From: Greg Chicares
Subject: [lmi-commits] [4897] Remove a disused member
Date: Mon, 03 May 2010 18:08:24 +0000

Revision: 4897
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4897
Author:   chicares
Date:     2010-05-03 18:08:23 +0000 (Mon, 03 May 2010)
Log Message:
-----------
Remove a disused member

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/database.cpp
    lmi/trunk/database.hpp
    lmi/trunk/ihs_database.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2010-05-03 11:48:28 UTC (rev 4896)
+++ lmi/trunk/ChangeLog 2010-05-03 18:08:23 UTC (rev 4897)
@@ -25339,3 +25339,22 @@
   objects.make
 Merge two TUs, renaming 'ihs_dbdict.cpp' to 'dbdict.cpp'.
 
+20100503T1134Z <address@hidden> [726]
+
+  dbdict.hpp
+  dbvalue.hpp
+Remove declarations of disused members.
+
+20100503T1148Z <address@hidden> [726]
+
+  dbvalue.cpp
+  dbvalue.hpp
+Prefer implicitly-defined special member functions [12/1].
+
+20100503T1808Z <address@hidden> [725]
+
+  database.cpp
+  database.hpp
+  ihs_database.cpp
+Remove a disused member.
+

Modified: lmi/trunk/database.cpp
===================================================================
--- lmi/trunk/database.cpp      2010-05-03 11:48:28 UTC (rev 4896)
+++ lmi/trunk/database.cpp      2010-05-03 18:08:23 UTC (rev 4897)
@@ -97,13 +97,6 @@
 //============================================================================
 void TDatabase::Init()
 {
-    Index[0] = Gender;
-    Index[1] = static_cast<int>(Class   );
-    Index[2] = static_cast<unsigned int>(Smoker  );
-    Index[3] = static_cast<unsigned int>(IssueAge);
-    Index[4] = static_cast<unsigned int>(UWBasis );
-    Index[5] = static_cast<unsigned int>(State   );
-
     Idx.Gender      () = Gender     ;
     Idx.Class       () = Class      ;
     Idx.Smoker      () = Smoker     ;

Modified: lmi/trunk/database.hpp
===================================================================
--- lmi/trunk/database.hpp      2010-05-03 11:48:28 UTC (rev 4896)
+++ lmi/trunk/database.hpp      2010-05-03 18:08:23 UTC (rev 4897)
@@ -82,7 +82,6 @@
     void Init();
     void Init(std::string const& NewFilename);
 
-    int           Index[TDBIndex::MaxIndex];
     TDBIndex      Idx;
     std::string   Filename;
 

Modified: lmi/trunk/ihs_database.cpp
===================================================================
--- lmi/trunk/ihs_database.cpp  2010-05-03 11:48:28 UTC (rev 4896)
+++ lmi/trunk/ihs_database.cpp  2010-05-03 18:08:23 UTC (rev 4897)
@@ -43,11 +43,6 @@
 
 #include <algorithm>
 
-// TODO ?? Things to improve:
-//
-// Can we dispense with Index? It's just an alias for a set of other
-//   members that are used as input parameters to one ctor.
-
 //============================================================================
 TDatabase::TDatabase
     (std::string const& a_ProductName
@@ -123,7 +118,6 @@
             break;
         }
 
-    Index[5] = State;
     Idx.State() = State;
 }
 
@@ -147,13 +141,6 @@
 //============================================================================
 void TDatabase::Init()
 {
-    Index[0] = Gender;
-    Index[1] = Class;
-    Index[2] = Smoker;
-    Index[3] = IssueAge;
-    Index[4] = UWBasis;
-    Index[5] = State;
-
     Idx.Gender      () = Gender     ;
     Idx.Class       () = Class      ;
     Idx.Smoker      () = Smoker     ;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]