Author: wyoung
Date: Wed Nov 28 03:00:21 2007
New Revision: 1889
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1889&view=rev
Log:
Removed ResUse::reset_field_names() and reset_field_types() plus one
alias for each. They make ResUse rebuild its internal FieldNames and
FieldTypes objects, but nothing in the library called them and one
cannot imagine why and outsider would need to do this. It makes one's
spidey sense itch, so out they go. They can come back in the beta if
need be.
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=1889&r1=1888&r2=1889&view=diff
==============================================================================
--- trunk/lib/result.cpp (original)
+++ trunk/lib/result.cpp Wed Nov 28 03:00:21 2007
@@ -121,13 +121,6 @@
}
-void
-ResUse::reset_field_names()
-{
- names_ = new FieldNames(this);
-}
-
-
const mysql_type_info&
ResUse::field_type(int i) const
{
@@ -165,15 +158,6 @@
}
-void
-ResUse::reset_field_types()
-{
- delete types_;
- types_ = 0;
- types_ = new FieldTypes(this);
-}
-
-
ResUse&
ResUse::operator =(const ResUse& other)
{
Modified: trunk/lib/result.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/result.h?rev=1889&r1=1888&r2=1889&view=diff
==============================================================================
--- trunk/lib/result.h (original)
+++ trunk/lib/result.h Wed Nov 28 03:00:21 2007
@@ -179,10 +179,6 @@
/// \brief Get the names of the fields within this result set.
const RefCountedPointer<FieldNames> field_names() const;
- /// \brief Reset the names in the field list to their original
- /// values.
- void reset_field_names();
-
/// \brief Get the MySQL type for a field given its index.
const mysql_type_info& field_type(int) const;
@@ -190,9 +186,6 @@
/// result set.
const FieldTypes& field_types() const;
- /// \brief Reset the field types to their original values.
- void reset_field_types();
-
/// \brief Alias for field_num()
int names(const std::string & s) const { return field_num(s); }
@@ -203,17 +196,11 @@
const RefCountedPointer<FieldNames> names() const
{ return field_names(); }
- /// \brief Alias for reset_field_names()
- void reset_names() { reset_field_names(); }
-
/// \brief Alias for field_type()
const mysql_type_info& types(int i) const { return field_type(i); }
/// \brief Alias for field_types()
const FieldTypes& types() const { return field_types(); }
-
- /// \brief Alias for reset_field_types()
- void reset_types() { reset_field_types(); }
/// \brief Get the underlying Fields structure.
const Fields& fields() const { return fields_; }
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits