summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-12-02 12:48:01 +0000
committerrandomdan <randomdan@localhost>2011-12-02 12:48:01 +0000
commit3ac5d8429f24f2e86a6961553c2ea04f55b22f28 (patch)
tree9df39fe4fabbccd3eea53776f0ca57d8ef9d80b6
parentRemove excessive number of numeric type and correct implicit creation of bool... (diff)
downloadproject2-3ac5d8429f24f2e86a6961553c2ea04f55b22f28.tar.bz2
project2-3ac5d8429f24f2e86a6961553c2ea04f55b22f28.tar.xz
project2-3ac5d8429f24f2e86a6961553c2ea04f55b22f28.zip
Remove no longer required type handlers
-rw-r--r--project2/common/fileStrmVarWriter.cpp26
-rw-r--r--project2/common/fileStrmVarWriter.h10
-rw-r--r--project2/sql/sqlVariableBinder.cpp42
-rw-r--r--project2/sql/sqlVariableBinder.h10
4 files changed, 4 insertions, 84 deletions
diff --git a/project2/common/fileStrmVarWriter.cpp b/project2/common/fileStrmVarWriter.cpp
index c38c71b..e5b3eae 100644
--- a/project2/common/fileStrmVarWriter.cpp
+++ b/project2/common/fileStrmVarWriter.cpp
@@ -22,33 +22,9 @@ void FileStreamVariableWriter::operator()(const Null &) const {
void FileStreamVariableWriter::operator()(const Boolean & i) const {
fprintf(out, i.value ? "true" : "false");
}
-void FileStreamVariableWriter::operator()(const long long int & i) const {
- fprintf(out, "%lld", i);
-}
-void FileStreamVariableWriter::operator()(const long int & i) const {
+void FileStreamVariableWriter::operator()(const int64_t & i) const {
fprintf(out, "%ld", i);
}
-void FileStreamVariableWriter::operator()(const int & i) const {
- fprintf(out, "%d", i);
-}
-void FileStreamVariableWriter::operator()(const short int & i) const {
- fprintf(out, "%hd", i);
-}
-void FileStreamVariableWriter::operator()(const long long unsigned int & i) const {
- fprintf(out, "%llu", i);
-}
-void FileStreamVariableWriter::operator()(const long unsigned int & i) const {
- fprintf(out, "%lu", i);
-}
-void FileStreamVariableWriter::operator()(const unsigned int & i) const {
- fprintf(out, "%u", i);
-}
-void FileStreamVariableWriter::operator()(const short unsigned int & i) const {
- fprintf(out, "%hu", i);
-}
-void FileStreamVariableWriter::operator()(const float & i) const {
- fprintf(out, "%g", i);
-}
void FileStreamVariableWriter::operator()(const double & i) const {
fprintf(out, "%g", i);
}
diff --git a/project2/common/fileStrmVarWriter.h b/project2/common/fileStrmVarWriter.h
index a6a5a45..d0fb76f 100644
--- a/project2/common/fileStrmVarWriter.h
+++ b/project2/common/fileStrmVarWriter.h
@@ -9,15 +9,7 @@ class FileStreamVariableWriter : public boost::static_visitor<> {
~FileStreamVariableWriter();
void operator()(const Null &) const;
- void operator()(const long long int & i) const;
- void operator()(const long int & i) const;
- void operator()(const int & i) const;
- void operator()(const short int & i) const;
- void operator()(const long long unsigned int & i) const;
- void operator()(const long unsigned int & i) const;
- void operator()(const unsigned int & i) const;
- void operator()(const short unsigned int & i) const;
- void operator()(const float & i) const;
+ void operator()(const int64_t & i) const;
void operator()(const double & i) const;
void operator()(const Boolean & i) const;
void operator()(const Glib::ustring & i) const;
diff --git a/project2/sql/sqlVariableBinder.cpp b/project2/sql/sqlVariableBinder.cpp
index 1ff8170..c56047c 100644
--- a/project2/sql/sqlVariableBinder.cpp
+++ b/project2/sql/sqlVariableBinder.cpp
@@ -20,42 +20,7 @@ SqlVariableBinder::operator()(const Glib::ustring & i) const
cmd->bindParamS(idx, i);
}
void
-SqlVariableBinder::operator()(const long long unsigned int & i) const
-{
- cmd->bindParamI(idx, i);
-}
-void
-SqlVariableBinder::operator()(const long unsigned int & i) const
-{
- cmd->bindParamI(idx, i);
-}
-void
-SqlVariableBinder::operator()(const unsigned int & i) const
-{
- cmd->bindParamI(idx, i);
-}
-void
-SqlVariableBinder::operator()(const short unsigned int & i) const
-{
- cmd->bindParamI(idx, i);
-}
-void
-SqlVariableBinder::operator()(const long long int & i) const
-{
- cmd->bindParamI(idx, i);
-}
-void
-SqlVariableBinder::operator()(const long int & i) const
-{
- cmd->bindParamI(idx, i);
-}
-void
-SqlVariableBinder::operator()(const int & i) const
-{
- cmd->bindParamI(idx, i);
-}
-void
-SqlVariableBinder::operator()(const short int & i) const
+SqlVariableBinder::operator()(const int64_t & i) const
{
cmd->bindParamI(idx, i);
}
@@ -65,11 +30,6 @@ SqlVariableBinder::operator()(const double & i) const
cmd->bindParamF(idx, i);
}
void
-SqlVariableBinder::operator()(const float & i) const
-{
- cmd->bindParamF(idx, i);
-}
-void
SqlVariableBinder::operator()(const Boolean & i) const
{
cmd->bindParamI(idx, i.value ? 1 : 0);
diff --git a/project2/sql/sqlVariableBinder.h b/project2/sql/sqlVariableBinder.h
index 3d68773..476c63b 100644
--- a/project2/sql/sqlVariableBinder.h
+++ b/project2/sql/sqlVariableBinder.h
@@ -16,16 +16,8 @@ class SqlVariableBinder : public boost::static_visitor<> {
void operator()(const Null & i) const;
void operator()(const Boolean & i) const;
void operator()(const Glib::ustring & i) const;
- void operator()(const long long unsigned int & i) const;
- void operator()(const long unsigned int & i) const;
- void operator()(const unsigned int & i) const;
- void operator()(const short unsigned int & i) const;
- void operator()(const long long int & i) const;
- void operator()(const long int & i) const;
- void operator()(const int & i) const;
- void operator()(const short int & i) const;
+ void operator()(const int64_t & i) const;
void operator()(const double & i) const;
- void operator()(const float & i) const;
void operator()(const boost::posix_time::ptime & i) const;
private: