From 1c2eea295db24fdebcfb9de4d3d6f0e8a02adee4 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Fri, 1 Jun 2018 15:49:03 +0000 Subject: Remove unused variable pDst from CFWL_Edit::OnValidate GetOuter is const, so the assignment has no side effects, and the value is never user in the method body. Issue found with Clang Static Analyzer. Change-Id: I0116726a3df38dbf611db75ed03a0a17b4449d09 Reviewed-on: https://pdfium-review.googlesource.com/33531 Reviewed-by: Henrique Nakashima Commit-Queue: Ryan Harrison --- xfa/fwl/cfwl_edit.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp index 7c4f0e1607..623cf4e956 100644 --- a/xfa/fwl/cfwl_edit.cpp +++ b/xfa/fwl/cfwl_edit.cpp @@ -327,10 +327,6 @@ void CFWL_Edit::OnSelChanged() { } bool CFWL_Edit::OnValidate(const WideString& wsText) { - CFWL_Widget* pDst = GetOuter(); - if (!pDst) - pDst = this; - CFWL_EventValidate event(this); event.wsInsert = wsText; event.bValidate = true; -- cgit v1.2.3