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

Unified Diff: Source/modules/fetch/FetchManager.cpp

Issue 1230543002: [Fetch] Cleanup unused methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/modules/fetch/Body.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/FetchManager.cpp
diff --git a/Source/modules/fetch/FetchManager.cpp b/Source/modules/fetch/FetchManager.cpp
index 70daa59c44b6f89c5ffd33bdba238fa409376219..dae3b015e2bdb95fa411ddac85647aead070e9aa 100644
--- a/Source/modules/fetch/FetchManager.cpp
+++ b/Source/modules/fetch/FetchManager.cpp
@@ -50,7 +50,6 @@ public:
void didFailRedirectCheck() override;
void start();
- void cancel();
void dispose();
private:
@@ -257,25 +256,6 @@ void FetchManager::Loader::start()
performHTTPFetch(true, false);
}
-void FetchManager::Loader::cancel()
-{
- m_finished = true;
- if (m_loader) {
- m_loader->cancel();
- m_loader.clear();
- }
- if (m_resolver) {
- // Note: In the current implementation this branch is never taken
- // because this function can be called only through the body stream.
- ScriptState* scriptState = m_resolver->scriptState();
- ScriptState::Scope scope(scriptState);
- m_resolver->reject(V8ThrowException::createTypeError(scriptState->isolate(), "fetch is cancelled"));
- m_resolver.clear();
- }
-
- notifyFinished();
-}
-
void FetchManager::Loader::dispose()
{
// Prevent notification
« no previous file with comments | « Source/modules/fetch/Body.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698