Bug 1137019 (Part 1) - Get rid of unused LockImage forwarding methods on imgRequest. r=baku
authorSeth Fowler <seth@mozilla.com>
Mon, 23 Mar 2015 19:37:44 -0700
changeset 264067 3143c0a3e1a56972a0f06ff25a49111afabd3dfb
parent 264066 fde190586b1b6b3c6d7cc16c3eb4371728eafef8
child 264068 97aacb3e7b80f2c3a8a4c36cce44f86df78dc7f5
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1137019
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1137019 (Part 1) - Get rid of unused LockImage forwarding methods on imgRequest. r=baku
image/src/imgRequest.cpp
image/src/imgRequest.h
--- a/image/src/imgRequest.cpp
+++ b/image/src/imgRequest.cpp
@@ -574,28 +574,16 @@ imgRequest::CacheChanged(nsIRequest* aNe
 
   // When we get here, app caches differ or app cache is involved
   // just in one of the loads what we also consider as a change
   // in a loading cache.
   return true;
 }
 
 nsresult
-imgRequest::LockImage()
-{
-  return mImage->LockImage();
-}
-
-nsresult
-imgRequest::UnlockImage()
-{
-  return mImage->UnlockImage();
-}
-
-nsresult
 imgRequest::RequestDecode()
 {
   // If we've initialized our image, we can request a decode.
   if (mImage) {
     return mImage->RequestDecode();
   }
 
   // Otherwise, flag to do it when we get the image
--- a/image/src/imgRequest.h
+++ b/image/src/imgRequest.h
@@ -84,18 +84,16 @@ public:
   // Called or dispatched by cancel for main thread only execution.
   void ContinueCancel(nsresult aStatus);
 
   // Called or dispatched by EvictFromCache for main thread only execution.
   void ContinueEvict();
 
   // Methods that get forwarded to the Image, or deferred until it's
   // instantiated.
-  nsresult LockImage();
-  nsresult UnlockImage();
   nsresult StartDecoding();
   nsresult RequestDecode();
 
   inline void SetInnerWindowID(uint64_t aInnerWindowId) {
     mInnerWindowId = aInnerWindowId;
   }
 
   inline uint64_t InnerWindowID() const {