[glom/sqlbuilder2] sqlbuilder_get_full_query(): Remove unused overload.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/sqlbuilder2] sqlbuilder_get_full_query(): Remove unused overload.
- Date: Fri, 14 May 2010 17:23:44 +0000 (UTC)
commit 3d3a1cbb44ba255d4c46b79d46208f233d09aee1
Author: Murray Cumming <murrayc murrayc com>
Date: Fri May 14 19:20:28 2010 +0200
sqlbuilder_get_full_query(): Remove unused overload.
glom/libglom/utils.cc | 35 -----------------------------------
glom/libglom/utils.h | 5 -----
2 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/glom/libglom/utils.cc b/glom/libglom/utils.cc
index 0208502..ad7e81b 100644
--- a/glom/libglom/utils.cc
+++ b/glom/libglom/utils.cc
@@ -917,41 +917,6 @@ std::string Utils::sqlbuilder_get_full_query(
return std::string(buf.get());
}
-
-std::string Utils::sqlbuilder_get_full_query(
- const Glib::RefPtr<const Gnome::Gda::SqlBuilder>& builder,
- const Glib::RefPtr<const Gnome::Gda::Set>& params)
-{
- Glib::ustring result = "glom_query_not_parsed";
-
- try
- {
- Glib::RefPtr<Gnome::Gda::Statement> stmt = builder->get_statement();
- if(stmt)
- result = stmt->to_sql(params);
- }
- catch(const Gnome::Gda::SqlError& ex)
- {
- std::cerr << "sqlbuilder_get_full_query(): SqlError exception while getting query: " << ex.what() << std::endl;
- }
- catch(const Glib::Exception& ex)
- {
- std::cerr << "sqlbuilder_get_full_query(): exception (" << typeid(ex).name() << ") while getting query: " << ex.what() << std::endl;
- }
- catch(const std::exception& ex)
- {
- std::cerr << "sqlbuilder_get_full_query(): exception (" << typeid(ex).name() << ") while getting query: " << ex.what() << std::endl;
- }
-
- //Convert to something that std::cout should be able to handle.
- const Glib::ScopedPtr<char> buf(g_convert_with_fallback(
- result.raw().data(), result.raw().size(),
- "ISO-8859-1", "UTF-8",
- (char*)"?",
- 0, 0, 0));
- return std::string(buf.get());
-}
-
std::string Utils::sqlbuilder_get_full_query(
const Glib::RefPtr<const Gnome::Gda::SqlBuilder>& builder)
{
diff --git a/glom/libglom/utils.h b/glom/libglom/utils.h
index 41d97d1..3ffd985 100644
--- a/glom/libglom/utils.h
+++ b/glom/libglom/utils.h
@@ -118,11 +118,6 @@ std::string sqlbuilder_get_full_query(
/// Get the full query string suitable for use with std::cout.
std::string sqlbuilder_get_full_query(
- const Glib::RefPtr<const Gnome::Gda::SqlBuilder>& builder,
- const Glib::RefPtr<const Gnome::Gda::Set>& params);
-
-/// Get the full query string suitable for use with std::cout.
-std::string sqlbuilder_get_full_query(
const Glib::RefPtr<const Gnome::Gda::SqlBuilder>& builder);
/** Guess an appropriate identifier name based on a human-readable title
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]