From 60fa2fce1f6fc02b3039166d84ed8ec152312566 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 21 Jul 2017 17:42:19 -0700 Subject: Simplify code in CPDFSDK_FormFillEnvironment. This makes various IsFooKeyDown() methods static. Transitively apply that to callers too. Change-Id: Ia43b1fd62889c1943e0d8407e9696225b05125a8 Reviewed-on: https://pdfium-review.googlesource.com/7190 Commit-Queue: Lei Zhang Reviewed-by: dsinclair Reviewed-by: Tom Sepez --- fpdfsdk/cfx_systemhandler.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'fpdfsdk/cfx_systemhandler.cpp') diff --git a/fpdfsdk/cfx_systemhandler.cpp b/fpdfsdk/cfx_systemhandler.cpp index 882351145e..6281b1be91 100644 --- a/fpdfsdk/cfx_systemhandler.cpp +++ b/fpdfsdk/cfx_systemhandler.cpp @@ -132,15 +132,3 @@ int32_t CFX_SystemHandler::SetTimer(int32_t uElapse, void CFX_SystemHandler::KillTimer(int32_t nID) { m_pFormFillEnv->KillTimer(nID); } - -bool CFX_SystemHandler::IsSHIFTKeyDown(uint32_t nFlag) const { - return !!m_pFormFillEnv->IsSHIFTKeyDown(nFlag); -} - -bool CFX_SystemHandler::IsCTRLKeyDown(uint32_t nFlag) const { - return !!m_pFormFillEnv->IsCTRLKeyDown(nFlag); -} - -bool CFX_SystemHandler::IsALTKeyDown(uint32_t nFlag) const { - return !!m_pFormFillEnv->IsALTKeyDown(nFlag); -} -- cgit v1.2.3