From 95ec3976ab6cdb22cc6d63c6eeaec9536ae61284 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 25 Sep 2017 15:16:40 -0400 Subject: 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 Reviewed-by: Henrique Nakashima --- core/fxge/fx_ge_text.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'core/fxge/fx_ge_text.cpp') 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& 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); -} -- cgit v1.2.3