mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[#1848] Removed more dead code
This commit is contained in:
@@ -125,25 +125,6 @@ std::string PsqlBindArray::toText() const {
|
|||||||
std::ostringstream stream;
|
std::ostringstream stream;
|
||||||
for (int i = 0; i < values_.size(); ++i) {
|
for (int i = 0; i < values_.size(); ++i) {
|
||||||
stream << i << " : ";
|
stream << i << " : ";
|
||||||
#if 0
|
|
||||||
if (formats_[i] == TEXT_FMT) {
|
|
||||||
stream << "\"" << values_[i] << "\"" << std::endl;
|
|
||||||
} else {
|
|
||||||
const char *data = values_[i];
|
|
||||||
if (lengths_[i] == 0) {
|
|
||||||
stream << "empty" << std::endl;
|
|
||||||
} else {
|
|
||||||
stream << "0x";
|
|
||||||
for (int x = 0; x < lengths_[i]; ++x) {
|
|
||||||
stream << std::setfill('0') << std::setw(2)
|
|
||||||
<< std::setbase(16)
|
|
||||||
<< static_cast<unsigned int>(data[x]);
|
|
||||||
}
|
|
||||||
stream << std::endl;
|
|
||||||
stream << std::setbase(10);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
if (lengths_[i] == 0) {
|
if (lengths_[i] == 0) {
|
||||||
stream << "empty" << std::endl;
|
stream << "empty" << std::endl;
|
||||||
continue;
|
continue;
|
||||||
@@ -162,7 +143,6 @@ std::string PsqlBindArray::toText() const {
|
|||||||
stream << std::endl;
|
stream << std::endl;
|
||||||
stream << std::setbase(10);
|
stream << std::setbase(10);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (stream.str());
|
return (stream.str());
|
||||||
|
Reference in New Issue
Block a user