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

Unified Diff: third_party/WebKit/Source/platform/text/TextChecking.h

Issue 2228293002: Remove dead code in spell checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DeprecateTextCheckingType
Patch Set: 201608101257 Created 4 years, 4 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: third_party/WebKit/Source/platform/text/TextChecking.h
diff --git a/third_party/WebKit/Source/platform/text/TextChecking.h b/third_party/WebKit/Source/platform/text/TextChecking.h
index f05b87d4f6babb25c1cf45dd9daf8a8add55b2e2..0cda1661e0c12e86513b060b22c571725511f7c9 100644
--- a/third_party/WebKit/Source/platform/text/TextChecking.h
+++ b/third_party/WebKit/Source/platform/text/TextChecking.h
@@ -39,14 +39,6 @@
namespace blink {
-enum TextCheckingType {
- TextCheckingTypeNone = 0,
- TextCheckingTypeSpelling = 1 << 1,
- TextCheckingTypeGrammar = 1 << 2,
-};
-
-typedef unsigned TextCheckingTypeMask;
-
enum TextCheckingProcessType {
TextCheckingProcessBatch,
TextCheckingProcessIncremental
@@ -78,13 +70,11 @@ class TextCheckingRequestData final {
public:
TextCheckingRequestData()
: m_sequence(unrequestedTextCheckingSequence)
- , m_mask(TextCheckingTypeNone)
, m_processType(TextCheckingProcessIncremental)
{ }
- TextCheckingRequestData(int sequence, const String& text, TextCheckingTypeMask mask, TextCheckingProcessType processType, const Vector<uint32_t>& markers, const Vector<unsigned>& offsets)
+ TextCheckingRequestData(int sequence, const String& text, TextCheckingProcessType processType, const Vector<uint32_t>& markers, const Vector<unsigned>& offsets)
: m_sequence(sequence)
, m_text(text)
- , m_mask(mask)
, m_processType(processType)
, m_markers(markers)
, m_offsets(offsets)
@@ -92,8 +82,6 @@ public:
int sequence() const { return m_sequence; }
String text() const { return m_text; }
- TextCheckingTypeMask mask() const { return m_mask; }
- bool maskContains(TextCheckingType type) const { return m_mask & type; }
TextCheckingProcessType processType() const { return m_processType; }
const Vector<uint32_t>& markers() const { return m_markers; }
const Vector<unsigned>& offsets() const { return m_offsets; }
@@ -101,7 +89,6 @@ public:
private:
int m_sequence;
String m_text;
- TextCheckingTypeMask m_mask;
TextCheckingProcessType m_processType;
Vector<uint32_t> m_markers;
Vector<unsigned> m_offsets;

Powered by Google App Engine
This is Rietveld 408576698