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:
Jeff Muizelaar 2012-10-03 18:39:59 -04:00
parent ac15360713
commit 4751b78423
2 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -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);