diff options
author | James Wahlin <james.wahlin@mongodb.com> | 2019-08-29 21:23:38 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-29 21:23:38 +0000 |
commit | b32cdfc84dae9ae672565855496fc30d316e4ac0 (patch) | |
tree | 1709c4c83bfe5563e6a56ba43bdadd08fd8b7d62 /src/mongo/bson | |
parent | 1b80832e47cb033faded58bc2ce9c2d4d7a834f8 (diff) | |
download | mongo-b32cdfc84dae9ae672565855496fc30d316e4ac0.tar.gz |
SERVER-42815 Remove unused BSONElement::codeWScopeScopeDataUnsafe() method
Diffstat (limited to 'src/mongo/bson')
-rw-r--r-- | src/mongo/bson/bsonelement.h | 16 |
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(); |