Author: wyoung
Date: Tue Oct 23 06:10:38 2007
New Revision: 1769

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1769&view=rev
Log:
Removed ResUse::conn_ data member and ResUse::parent_leaving() method:
apparently vesigial.

Modified:
    trunk/lib/result.cpp
    trunk/lib/result.h

Modified: trunk/lib/result.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/result.cpp?rev=1769&r1=1768&r2=1769&view=diff
==============================================================================
--- trunk/lib/result.cpp (original)
+++ trunk/lib/result.cpp Tue Oct 23 06:10:38 2007
@@ -41,7 +41,6 @@
 
 ResUse::ResUse(MYSQL_RES* result, Connection* c, bool te) :
 OptionalExceptions(te),
-conn_(c),
 initialized_(false),
 types_(0),
 fields_(this)
@@ -86,7 +85,6 @@
 
                table_ = other.table_;
 
-               conn_ = other.conn_;
                initialized_ = true;
        }
        else {

Modified: trunk/lib/result.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/result.h?rev=1769&r1=1768&r2=1769&view=diff
==============================================================================
--- trunk/lib/result.h (original)
+++ trunk/lib/result.h Tue Oct 23 06:10:38 2007
@@ -66,7 +66,6 @@
        /// \brief Default constructor
        ResUse() :
        OptionalExceptions(),
-       conn_(0),
        result_(0),
        initialized_(false),
        types_(0),
@@ -149,12 +148,6 @@
                return mysql_num_fields(result_);
        }
        
-       /// \brief Documentation needed!
-       void parent_leaving()
-       {
-               conn_ = 0;
-       }
-
        /// \brief Free all resources held by the object.
        ///
        /// This class's destructor is little more than a call to purge(),
@@ -311,7 +304,6 @@
        }
 
 protected:
-       Connection* conn_;                      ///< server result set comes 
from
        mutable MYSQL_RES* result_;     ///< underlying C API result set
        bool initialized_;                      ///< if true, object is fully 
initted
        mutable FieldTypes* types_;     ///< list of field types in result
@@ -404,7 +396,6 @@
        Result(const Result& other) :
        ResUse(other)
        {
-               conn_ = 0;
        }
 
        /// \brief Destroy result set


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to