Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: xfa/fxfa/app/xfa_fftextedit.cpp

Issue 2323523002: Remove unused code in CPDFXFA_Document (Closed)
Patch Set: Rebase to master Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: xfa/fxfa/app/xfa_fftextedit.cpp
diff --git a/xfa/fxfa/app/xfa_fftextedit.cpp b/xfa/fxfa/app/xfa_fftextedit.cpp
index 6df4507e2202e6b07a73f8b2adcf017fb94e4108..89c56763fec15b7db6ff8969d1aeeda9d2459927 100644
--- a/xfa/fxfa/app/xfa_fftextedit.cpp
+++ b/xfa/fxfa/app/xfa_fftextedit.cpp
@@ -387,18 +387,17 @@ void CXFA_FFTextEdit::OnTextFull(IFWL_Widget* pWidget) {
}
FX_BOOL CXFA_FFTextEdit::CheckWord(const CFX_ByteStringC& sWord) {
- if (sWord.IsEmpty() || m_pDataAcc->GetUIType() != XFA_Element::TextEdit) {
+ if (sWord.IsEmpty() || m_pDataAcc->GetUIType() != XFA_Element::TextEdit)
return TRUE;
- }
- return GetDoc()->GetDocProvider()->CheckWord(GetDoc(), sWord);
Wei Li 2016/09/13 17:45:52 I am a bit concerned with changes like this. The u
dsinclair 2016/09/13 17:51:19 I guess the question is, do we know if we'll ever
Wei Li 2016/09/13 18:09:07 I am ok with removing unimplemented code. Should w
dsinclair 2016/09/13 18:12:12 Yea, they should be removed completely. If they're
+ return FALSE;
}
+
FX_BOOL CXFA_FFTextEdit::GetSuggestWords(
const CFX_ByteStringC& sWord,
std::vector<CFX_ByteString>& sSuggest) {
- if (m_pDataAcc->GetUIType() != XFA_Element::TextEdit) {
+ if (m_pDataAcc->GetUIType() != XFA_Element::TextEdit)
return FALSE;
- }
- return GetDoc()->GetDocProvider()->GetSuggestWords(GetDoc(), sWord, sSuggest);
+ return FALSE;
}
void CXFA_FFTextEdit::OnProcessMessage(CFWL_Message* pMessage) {

Powered by Google App Engine
This is Rietveld 408576698