[lldb] Remove ConstString::StaticMemorySize
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 26 Jan 2022 17:10:50 +0000 (09:10 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 26 Jan 2022 17:13:46 +0000 (09:13 -0800)
commitcbd0822f2730e2b0d5f1c44b645609fe9554f58e
treee8856cd40f62aa351c8761cc1b996fc217f43a57
parent28bfa57a7315c3161124c90b4d52f467616dc92e
[lldb] Remove ConstString::StaticMemorySize

Remove ConstString::StaticMemorySize as it is unused and superseded by
GetMemoryStats. It is referenced in a bunch of doc comments but I don't
really understand why. My best guess it that the comments were
copy-pasted from ConstString::MemorySize() even though it didn't make
sense there either. The implementation of StaticMemorySize was being
called on the MemoryPool, not on the ConstString itself.

Differential revision: https://reviews.llvm.org/D118091
lldb/include/lldb/Core/Declaration.h
lldb/include/lldb/Core/FileSpecList.h
lldb/include/lldb/Core/Mangled.h
lldb/include/lldb/Symbol/Function.h
lldb/include/lldb/Utility/ConstString.h
lldb/include/lldb/Utility/FileSpec.h
lldb/source/Utility/ConstString.cpp