mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 566370. Remove return type from AddProxy(). r=joe
No one checks it, and it's not really useful. --HG-- extra : rebase_source : 164f3c18f707551670af1acd4d735f705903a9d2
This commit is contained in:
parent
ac15360713
commit
4751b78423
@ -176,7 +176,7 @@ bool imgRequest::HasCacheEntry() const
|
||||
return mCacheEntry != nullptr;
|
||||
}
|
||||
|
||||
nsresult imgRequest::AddProxy(imgRequestProxy *proxy)
|
||||
void imgRequest::AddProxy(imgRequestProxy *proxy)
|
||||
{
|
||||
NS_PRECONDITION(proxy, "null imgRequestProxy passed in");
|
||||
LOG_SCOPE_WITH_PARAM(gImgLog, "imgRequest::AddProxy", "proxy", proxy);
|
||||
@ -197,8 +197,7 @@ nsresult imgRequest::AddProxy(imgRequestProxy *proxy)
|
||||
|
||||
proxy->SetPrincipal(mPrincipal);
|
||||
|
||||
return mObservers.AppendElementUnlessExists(proxy) ?
|
||||
NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
||||
mObservers.AppendElementUnlessExists(proxy);
|
||||
}
|
||||
|
||||
nsresult imgRequest::RemoveProxy(imgRequestProxy *proxy, nsresult aStatus, bool aNotify)
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
int32_t aCORSMode);
|
||||
|
||||
// Callers must call imgRequestProxy::Notify later.
|
||||
nsresult AddProxy(imgRequestProxy *proxy);
|
||||
void AddProxy(imgRequestProxy *proxy);
|
||||
|
||||
// aNotify==false still sends OnStopRequest.
|
||||
nsresult RemoveProxy(imgRequestProxy *proxy, nsresult aStatus, bool aNotify);
|
||||
|
Loading…
Reference in New Issue
Block a user