summaryrefslogtreecommitdiff
path: root/src/mongo/bson
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@mongodb.com>2019-08-29 21:23:38 +0000
committerevergreen <evergreen@mongodb.com>2019-08-29 21:23:38 +0000
commitb32cdfc84dae9ae672565855496fc30d316e4ac0 (patch)
tree1709c4c83bfe5563e6a56ba43bdadd08fd8b7d62 /src/mongo/bson
parent1b80832e47cb033faded58bc2ce9c2d4d7a834f8 (diff)
downloadmongo-b32cdfc84dae9ae672565855496fc30d316e4ac0.tar.gz
SERVER-42815 Remove unused BSONElement::codeWScopeScopeDataUnsafe() method
Diffstat (limited to 'src/mongo/bson')
-rw-r--r--src/mongo/bson/bsonelement.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/bson/bsonelement.h b/src/mongo/bson/bsonelement.h
index 151872be545..892be6df831 100644
--- a/src/mongo/bson/bsonelement.h
+++ b/src/mongo/bson/bsonelement.h
@@ -467,23 +467,7 @@ public:
return ConstDataView(value() + 4).read<LittleEndian<int>>();
}
- /** Get the scope SavedContext of a CodeWScope data element.
- *
- * This function is DEPRECATED, since it can error if there are
- * null chars in the codeWScopeCode. However, some existing indexes
- * may be based on an incorrect ordering derived from this function,
- * so it may still need to be used in certain cases.
- * */
- const char* codeWScopeScopeDataUnsafe() const {
- // This can error if there are null chars in the codeWScopeCode
- return codeWScopeCode() + strlen(codeWScopeCode()) + 1;
- }
-
/* Get the scope SavedContext of a CodeWScope data element.
- *
- * This is the corrected version of codeWScopeScopeDataUnsafe(),
- * but note that existing uses might rely on the behavior of
- * that function so be careful in choosing which version to use.
*/
const char* codeWScopeScopeData() const {
return codeWScopeCode() + codeWScopeCodeLen();