summaryrefslogtreecommitdiff
path: root/core/fxge/fx_ge_text.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-25 15:16:40 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-25 19:29:21 +0000
commit95ec3976ab6cdb22cc6d63c6eeaec9536ae61284 (patch)
treedfc3bc56d3d8999a1895bd63f5037d03719e0927 /core/fxge/fx_ge_text.cpp
parent92627618a93720c6153828b8a8d1c6ed17c6e91f (diff)
downloadpdfium-95ec3976ab6cdb22cc6d63c6eeaec9536ae61284.tar.xz
Hide CFX_UniqueKeyGen
The CFX_UniqueKeyGen struct is only used in cfx_facecache.cpp. This CL moves the struct to the anonymous namespace of that file. Change-Id: I1ec85126070e2e0446abc5639cea8465cb490f1a Reviewed-on: https://pdfium-review.googlesource.com/14770 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxge/fx_ge_text.cpp')
-rw-r--r--core/fxge/fx_ge_text.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/fxge/fx_ge_text.cpp b/core/fxge/fx_ge_text.cpp
index 39c82b2751..a04e43f75d 100644
--- a/core/fxge/fx_ge_text.cpp
+++ b/core/fxge/fx_ge_text.cpp
@@ -107,14 +107,3 @@ FX_RECT FXGE_GetGlyphsBBox(const std::vector<FXTEXT_GLYPHPOS>& glyphs,
CFX_SizeGlyphCache::CFX_SizeGlyphCache() {}
CFX_SizeGlyphCache::~CFX_SizeGlyphCache() {}
-
-void CFX_UniqueKeyGen::Generate(int count, ...) {
- va_list argList;
- va_start(argList, count);
- for (int i = 0; i < count; i++) {
- int p = va_arg(argList, int);
- ((uint32_t*)m_Key)[i] = p;
- }
- va_end(argList);
- m_KeyLen = count * sizeof(uint32_t);
-}