Skip to content

Commit

Permalink
[WPE] Remove unused m_allowPlainText private field in WebContentReader
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=272088

Reviewed by Michael Catanzaro.

* Source/WebCore/editing/WebContentReader.h:
The m_allowPlainText private field is only used in Cocoa and GTK platforms.

Canonical link: https://commits.webkit.org/277111@main
  • Loading branch information
blino committed Apr 5, 2024
1 parent ba0578f commit 02e8281
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/WebCore/editing/WebContentReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ class WebContentReader final : public FrameWebContentReader {
WebContentReader(LocalFrame& frame, const SimpleRange& context, bool allowPlainText)
: FrameWebContentReader(frame)
, m_context(context)
#if PLATFORM(COCOA) || PLATFORM(GTK)
, m_allowPlainText(allowPlainText)
#endif
{
UNUSED_PARAM(allowPlainText);
}

void addFragment(Ref<DocumentFragment>&&);
Expand All @@ -87,7 +90,9 @@ class WebContentReader final : public FrameWebContentReader {
#endif

const SimpleRange m_context;
#if PLATFORM(COCOA) || PLATFORM(GTK)
const bool m_allowPlainText;
#endif

RefPtr<DocumentFragment> m_fragment;
bool m_madeFragmentFromPlainText { false };
Expand Down

0 comments on commit 02e8281

Please sign in to comment.