summaryrefslogtreecommitdiff
path: root/core/fxcrt/string_data_template.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-04 23:24:30 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-04 23:24:30 +0000
commit57353fb32972af2254070bfb2f662c8add8b2efb (patch)
tree5f4c87d9411ce1a368697fc3d9d9b6a217f15e5e /core/fxcrt/string_data_template.h
parentc38c9d15f18c2b883df6e29f2364d05699b87d53 (diff)
downloadpdfium-57353fb32972af2254070bfb2f662c8add8b2efb.tar.xz
Remove some unused code in fxcrt strings.
Unused static method in StringDataTemplate<>. Unused WideString::GetFloat(), which in turn allows us to remove another custom string to float parser. Change-Id: If7ae60a0ba90563598232bad229f97cb74d682ba Reviewed-on: https://pdfium-review.googlesource.com/c/43513 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/string_data_template.h')
-rw-r--r--core/fxcrt/string_data_template.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/fxcrt/string_data_template.h b/core/fxcrt/string_data_template.h
index bc797c07e2..f65d37c3ef 100644
--- a/core/fxcrt/string_data_template.h
+++ b/core/fxcrt/string_data_template.h
@@ -41,12 +41,6 @@ class StringDataTemplate {
return new (pData) StringDataTemplate(nLen, usableLen);
}
- static StringDataTemplate* Create(const StringDataTemplate& other) {
- StringDataTemplate* result = Create(other.m_nDataLength);
- result->CopyContents(other);
- return result;
- }
-
static StringDataTemplate* Create(const CharType* pStr, size_t nLen) {
StringDataTemplate* result = Create(nLen);
result->CopyContents(pStr, nLen);