Truly independent web browser
LibWeb: Remove unused accessors
Shannon Boothaeac9d6a7c24
diff --git a/Libraries/LibWeb/CSS/NumericType.h b/Libraries/LibWeb/CSS/NumericType.hindex 2caaf4f174b..8caa12ff7f7 100644--- a/Libraries/LibWeb/CSS/NumericType.h+++ b/Libraries/LibWeb/CSS/NumericType.h@@ -43,8 +43,6 @@ public:}bool matches_angle(Optional<ValueType> percentages_resolve_as) const { return matches_dimension(BaseType::Angle, percentages_resolve_as); }- bool matches_flex(Optional<ValueType> percentages_resolve_as) const { return matches_dimension(BaseType::Flex, percentages_resolve_as); }- bool matches_frequency(Optional<ValueType> percentages_resolve_as) const { return matches_dimension(BaseType::Frequency, percentages_resolve_as); }bool matches_length(Optional<ValueType> percentages_resolve_as) const { return matches_dimension(BaseType::Length, percentages_resolve_as); }bool matches_length_percentage(Optional<ValueType> percentages_resolve_as) const { return matches_dimension_percentage(BaseType::Length, percentages_resolve_as); }bool matches_number(Optional<ValueType> percentages_resolve_as) const;diff --git a/Libraries/LibWeb/CSS/PropertyName.h b/Libraries/LibWeb/CSS/PropertyName.hindex 045d028e8a0..65866ba0f0e 100644--- a/Libraries/LibWeb/CSS/PropertyName.h+++ b/Libraries/LibWeb/CSS/PropertyName.h@@ -31,15 +31,4 @@ inline bool is_a_custom_property_name_string(StringView string)return string.length() > 2 && string[0] == '-' && string[1] == '-';}-// https://drafts.css-houdini.org/css-typed-om-1/#valid-css-property-inline bool is_a_valid_css_property(Utf16FlyString const& string)-{- if (is_a_custom_property_name_string(string))- return true;- if (!string.is_ascii())- return false;- auto string_data = string.to_utf16_string();- return property_id_from_string(string_data.ascii_view()).has_value();-}-}diff --git a/Libraries/LibWeb/CSS/StyleValues/ShadowStyleValue.h b/Libraries/LibWeb/CSS/StyleValues/ShadowStyleValue.hindex aecbfd37410..fe6abe990cc 100644--- a/Libraries/LibWeb/CSS/StyleValues/ShadowStyleValue.h+++ b/Libraries/LibWeb/CSS/StyleValues/ShadowStyleValue.h@@ -33,7 +33,6 @@ public:ValueComparingNonnullRefPtr<StyleValue const> offset_x() const { return wrap_rust_child(m_value->shadow._0->offset_x); }ValueComparingNonnullRefPtr<StyleValue const> offset_y() const { return wrap_rust_child(m_value->shadow._0->offset_y); }ValueComparingRefPtr<StyleValue const> blur_radius_or_null() const { return wrap_rust_child_or_null(m_value->shadow._0->blur_radius); }- ValueComparingRefPtr<StyleValue const> spread_distance_or_null() const { return wrap_rust_child_or_null(m_value->shadow._0->spread_distance); }private:explicit ShadowStyleValue(StyleValueFFI::StyleValueData const* data)diff --git a/Libraries/LibWeb/DOM/Document.h b/Libraries/LibWeb/DOM/Document.hindex b7e04504252..1b36e9b7558 100644--- a/Libraries/LibWeb/DOM/Document.h+++ b/Libraries/LibWeb/DOM/Document.h@@ -948,7 +948,6 @@ public:void set_text_directive_user_activation(bool value) { m_text_directive_user_activation = value; }bool browsing_context_group_has_multiple_contexts() const;bool browsing_context_group_has_remote_contexts() const { return m_browsing_context_group_has_remote_contexts; }- void set_browsing_context_group_has_remote_contexts(bool value) { m_browsing_context_group_has_remote_contexts = value; }// AD-HOC: Whether this document is still loading after a navigation that bypassed the HTTP cache: a reload that// bypasses it, or a child navigable's navigation while its container document loaded that way. Until it@@ -960,7 +959,6 @@ public:void set_current_script(Badge<HTML::HTMLOrSVGScriptElement>, GC::Ptr<Element> script) { m_current_script = move(script); }static constexpr size_t current_script_offset() { return offsetof(Document, m_current_script); }- u32 ignore_destructive_writes_counter() const { return m_ignore_destructive_writes_counter; }void increment_ignore_destructive_writes_counter() { m_ignore_destructive_writes_counter++; }void decrement_ignore_destructive_writes_counter() { m_ignore_destructive_writes_counter--; }@@ -1337,7 +1335,6 @@ public:bool accessibility_caches_bypassed() const { return m_accessibility_caches_bypassed; }// For tests: each node whose kept data differs from what computing it again gives.Vector<String> cached_accessibility_record_mismatches();- size_t cached_accessible_text_count() const { return m_cached_accessible_text.size(); }// For tests: each cached name or description that differs from what computing it again gives.Vector<String> cached_accessible_text_mismatches();diff --git a/Libraries/LibWeb/DOM/SelectorQuery.h b/Libraries/LibWeb/DOM/SelectorQuery.hindex f2f9ac8171c..148044cab7c 100644--- a/Libraries/LibWeb/DOM/SelectorQuery.h+++ b/Libraries/LibWeb/DOM/SelectorQuery.h@@ -36,7 +36,6 @@ public:CSS::SelectorList const& selectors() const { return m_selectors; }- bool is_result_cacheable() const { return m_is_result_cacheable; }bool depends_on_character_data() const { return m_depends_on_character_data; }// Marked by the document's selector query cache each time it hands out the query again, so that a full cache candiff --git a/Libraries/LibWeb/HTML/EventLoop/EventLoop.h b/Libraries/LibWeb/HTML/EventLoop/EventLoop.hindex b673b4eb2ba..2bd0e72dda3 100644--- a/Libraries/LibWeb/HTML/EventLoop/EventLoop.h+++ b/Libraries/LibWeb/HTML/EventLoop/EventLoop.h@@ -114,7 +114,6 @@ public:bool microtask_queue_empty() const { return m_microtask_queue.is_empty(); }void enqueue_microtask(GC::Ref<HTML::Task> task) { m_microtask_queue.enqueue(task); }- GC::Ref<HTML::Task> dequeue_microtask() { return m_microtask_queue.dequeue(); }void spin_until(GC::Ref<GC::Function<bool()>> goal_condition);void process();@@ -235,8 +234,6 @@ public:void hold_next_layout_for_testing() { m_holds_next_layout_for_testing = true; }void release_held_frames_for_testing();- RenderingSchedulerCounters const& rendering_scheduler_counters() const { return m_rendering_scheduler_counters; }-void begin_rendering_trace() { m_rendering_trace = Vector<RenderingTraceLine> {}; }String take_rendering_trace();void note_rendering_trace_event(StringView);diff --git a/Libraries/LibWeb/HTML/Parser/HTMLParser.h b/Libraries/LibWeb/HTML/Parser/HTMLParser.hindex 3c9756f8d59..2f290b2a654 100644--- a/Libraries/LibWeb/HTML/Parser/HTMLParser.h+++ b/Libraries/LibWeb/HTML/Parser/HTMLParser.h@@ -117,7 +117,6 @@ public:void schedule_resume_check();void set_post_parse_action(Function<void()> action) { m_post_parse_action = move(action); }- void invoke_post_parse_action_for_testing() { invoke_post_parse_action(); }private:static GC::Ptr<DOM::DocumentFragment> try_parse_html_fragment_fast(DOM::Element&, Utf16View);diff --git a/Libraries/LibWeb/HTML/Window.h b/Libraries/LibWeb/HTML/Window.hindex 1f3f33e3432..d5ab5df6866 100644--- a/Libraries/LibWeb/HTML/Window.h+++ b/Libraries/LibWeb/HTML/Window.h@@ -289,7 +289,6 @@ public:static void run_activation_notification_steps(DOM::Document&);void consume_user_activation();- HighResolutionTime::DOMHighResTimeStamp last_history_action_activation_timestamp() const { return m_last_history_action_activation_timestamp; }void set_last_history_action_activation_timestamp(HighResolutionTime::DOMHighResTimeStamp timestamp) { m_last_history_action_activation_timestamp = timestamp; }void consume_history_action_user_activation();diff --git a/Libraries/LibWeb/HTML/WorkletGlobalScope.h b/Libraries/LibWeb/HTML/WorkletGlobalScope.hindex 8523161786a..135caa77af4 100644--- a/Libraries/LibWeb/HTML/WorkletGlobalScope.h+++ b/Libraries/LibWeb/HTML/WorkletGlobalScope.h@@ -64,8 +64,6 @@ protected:private:friend JS::Realm& Bindings::main_world_realm(WorkletGlobalScope const&);- virtual bool is_universal_global_scope_mixin() const final { return true; }-GC::Ptr<EnvironmentSettingsObject> m_settings_object;URL::URL m_url;IDAllocator m_timer_id_allocator;diff --git a/Libraries/LibWeb/Page/Page.h b/Libraries/LibWeb/Page/Page.hindex 15360e444c5..19676464c74 100644--- a/Libraries/LibWeb/Page/Page.h+++ b/Libraries/LibWeb/Page/Page.h@@ -517,7 +517,6 @@ public:void container_fullscreen_complete(HTML::CrossProcessId hosted_root_id);void container_unfullscreen_complete(HTML::CrossProcessId hosted_root_id);- ViewportIsFullscreen viewport_is_fullscreen() const { return m_viewport_is_fullscreen; }void set_viewport_is_fullscreen(ViewportIsFullscreen);void did_deny_fullscreen_window();