summaryrefslogtreecommitdiff
path: root/src/mongo/db/pdfile.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-03-05 09:41:10 -0500
committerEliot Horowitz <eliot@10gen.com>2014-04-03 13:31:49 -0400
commita17800eb598724f240862b3180a1aec29c1d0d52 (patch)
tree01f7452200990cd78af55a12e3b98d2b7682b2fc /src/mongo/db/pdfile.cpp
parent2e594a1219f44752fce9b8d82b22a0f59e4a7bd5 (diff)
downloadmongo-a17800eb598724f240862b3180a1aec29c1d0d52.tar.gz
SERVER-11643: remove unused mongo::getDbContext
Diffstat (limited to 'src/mongo/db/pdfile.cpp')
-rw-r--r--src/mongo/db/pdfile.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/db/pdfile.cpp b/src/mongo/db/pdfile.cpp
index 1719706451c..772ed34837b 100644
--- a/src/mongo/db/pdfile.cpp
+++ b/src/mongo/db/pdfile.cpp
@@ -100,22 +100,6 @@ namespace mongo {
uassertStatusOK( collection->getIndexCatalog()->ensureHaveIdIndex() );
}
- string getDbContext() {
- stringstream ss;
- Client * c = currentClient.get();
- if ( c ) {
- Client::Context * cx = c->getContext();
- if ( cx ) {
- Database *database = cx->db();
- if ( database ) {
- ss << database->name() << ' ';
- ss << cx->ns() << ' ';
- }
- }
- }
- return ss.str();
- }
-
/*---------------------------------------------------------------------*/
/** { ..., capped: true, size: ..., max: ... }