summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-01-03 15:36:47 -0500
committerAndrew Morrow <acm@mongodb.com>2015-01-05 18:27:00 -0500
commit7d0330733bf33779869dab27762dff30b0f7ad59 (patch)
tree8a38093036b1e5a7c00c163cf494690f8f608e6b /src
parent21e1811a4e92c72b095d93e5cadb1d3428605d42 (diff)
downloadmongo-7d0330733bf33779869dab27762dff30b0f7ad59.tar.gz
SERVER-13256 Remove unused functions from goodies.h
Diffstat (limited to 'src')
-rw-r--r--src/mongo/util/goodies.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mongo/util/goodies.h b/src/mongo/util/goodies.h
index ec2f255599b..a9c6398da29 100644
--- a/src/mongo/util/goodies.h
+++ b/src/mongo/util/goodies.h
@@ -42,39 +42,6 @@
namespace mongo {
- template<class T>
- inline std::string ToString(const T& t) {
- std::stringstream s;
- s << t;
- return s.str();
- }
-
- inline void dumpmemory(const char *data, int len) {
- if ( len > 1024 )
- len = 1024;
- try {
- const char *q = data;
- const char *p = q;
- while ( len > 0 ) {
- for ( int i = 0; i < 16; i++ ) {
- if ( *p >= 32 && *p <= 126 )
- std::cout << *p;
- else
- std::cout << '.';
- p++;
- }
- std::cout << " ";
- p -= 16;
- for ( int i = 0; i < 16; i++ )
- std::cout << (unsigned) ((unsigned char)*p++) << ' ';
- std::cout << std::endl;
- len -= 16;
- }
- }
- catch (...) {
- }
- }
-
// PRINT(2+2); prints "2+2: 4"
#define MONGO_PRINT(x) std::cout << #x ": " << (x) << std::endl
#define PRINT MONGO_PRINT