Skip to content

Commit

Permalink
Remove unused function LinkLoaderClient::GetLoadingTaskRunner()
Browse files Browse the repository at this point in the history
Change-Id: I17c4d685424842fec48061edf866758741d4a7d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3553685
Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#988223}
  • Loading branch information
xiaochengh authored and Chromium LUCI CQ committed Apr 2, 2022
1 parent 177d736 commit c932654
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions third_party/blink/renderer/core/html/html_link_element.cc
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,6 @@ void HTMLLinkElement::LinkLoadingErrored() {
DispatchEvent(*Event::Create(event_type_names::kError));
}

scoped_refptr<base::SingleThreadTaskRunner>
HTMLLinkElement::GetLoadingTaskRunner() {
return GetDocument().GetTaskRunner(TaskType::kNetworking);
}

bool HTMLLinkElement::SheetLoaded() {
DCHECK(GetLinkStyle());
return GetLinkStyle()->SheetLoaded();
Expand Down
1 change: 0 additions & 1 deletion third_party/blink/renderer/core/html/html_link_element.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
// From LinkLoaderClient
void LinkLoaded() override;
void LinkLoadingErrored() override;
scoped_refptr<base::SingleThreadTaskRunner> GetLoadingTaskRunner() override;

Member<LinkResource> link_;
Member<LinkLoader> link_loader_;
Expand Down
4 changes: 0 additions & 4 deletions third_party/blink/renderer/core/loader/link_loader_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ class CORE_EXPORT LinkLoaderClient : public GarbageCollectedMixin {
// There is no notification for cancellation.

virtual bool IsLinkCreatedByParser() = 0;

// TODO(xiaochengh): Remove this unused function.
virtual scoped_refptr<base::SingleThreadTaskRunner>
GetLoadingTaskRunner() = 0;
};

} // namespace blink
Expand Down
4 changes: 0 additions & 4 deletions third_party/blink/renderer/core/loader/link_loader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ class MockLinkLoaderClient final
void LinkLoaded() override {}
void LinkLoadingErrored() override {}

scoped_refptr<base::SingleThreadTaskRunner> GetLoadingTaskRunner() override {
return Thread::Current()->GetTaskRunner();
}

private:
const bool should_load_;
};
Expand Down

0 comments on commit c932654

Please sign in to comment.