Uh oh!
There was an error while loading. Please reload this page.
delete deadcode from nsutilpriv.h - #108104
Conversation
Tagging subscribers to this area: @mangod9 |
| // Concatenate type names to assembly names | ||
| //***************************************************************************** | ||
| static | ||
| bool MakeAssemblyQualifiedName( // true if ok, false if out of memory |
There was a problem hiding this comment.
MakeAssemblyQualifiedName methods look like dead code. Could you please delete them instead?
| int dwAssemblyName); // Number of characters (not including null) | ||
| static | ||
| int MakeNestedTypeName( // true ok, false out of memory |
There was a problem hiding this comment.
only third one with stack string is in use
| // Concatinate type names to assembly names | ||
| //***************************************************************************** | ||
| static | ||
| bool MakeAssemblyQualifiedName( // true if ok, false if out of memory |
There was a problem hiding this comment.
Also delete the implementation in https://github.com/dotnet/runtime/blob/main/src/coreclr/utilcode/namespaceutil.cpp
255b288 to
47c3cfbCompare| #ifdef _PREFAST_ | ||
| // need to set ptr=NULL so we don't get a build error because ptr isn't inited in a couple cases | ||
| #define MAKE_FULLY_QUALIFIED_MEMBER_NAME(ptr, pszNameSpace, pszClassName, pszMemberName, pszSig) ptr=NULL; | ||
| #else //_PREFAST_ |
There was a problem hiding this comment.
| #ifdef_PREFAST_ | |
| // need to set ptr=NULL so we don't get a build error because ptr isn't inited in a couple cases | |
| #defineMAKE_FULLY_QUALIFIED_MEMBER_NAME(ptr, pszNameSpace, pszClassName, pszMemberName, pszSig) ptr=NULL; | |
| #else//_PREFAST_ |
This should not be needed.
| int __i##ptr = ns::GetFullLength(pszNameSpace, pszClassName); \ | ||
| __i##ptr += (pszMemberName ? (int) strlen(pszMemberName) : 0); \ | ||
| __i##ptr += (NAMESPACE_SEPARATOR_LEN * 2); \ | ||
| __i##ptr += (int)strlen(NAMESPACE_SEPARATOR_STR) + 1; \ |
There was a problem hiding this comment.
This change does not look right. The code below adds NAMESPACE_SEPARATOR_STR up to two times, so it makes sense that NAMESPACE_SEPARATOR_LEN was multiplied by two.
No description provided.