Bug 1079954 - File::SetLazyData is not used, r=ehsan
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 09 Oct 2014 09:36:23 +0100
changeset 234081 dbd9a3b1ba7084ad1bbd0ba6583f541667cc3a72
parent 234080 5dd50b10a400989645605900aad478ba6a64f827
child 234082 318da8a0ab9006b0454bf148640619e34ddf6609
push id611
push userraliiev@mozilla.com
push dateMon, 05 Jan 2015 23:23:16 +0000
treeherdermozilla-release@345cd3b9c445 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1079954
milestone35.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 1079954 - File::SetLazyData is not used, r=ehsan
content/base/public/File.h
content/base/src/File.cpp
--- a/content/base/public/File.h
+++ b/content/base/public/File.h
@@ -136,19 +136,16 @@ public:
   const nsTArray<nsRefPtr<FileImpl>>* GetSubBlobImpls() const;
 
   bool IsSizeUnknown() const;
 
   bool IsDateUnknown() const;
 
   bool IsFile() const;
 
-  void SetLazyData(const nsAString& aName, const nsAString& aContentType,
-                   uint64_t aLength, uint64_t aLastModifiedDate);
-
   already_AddRefed<File>
   CreateSlice(uint64_t aStart, uint64_t aLength, const nsAString& aContentType,
               ErrorResult& aRv);
 
   // WebIDL methods
   nsISupports* GetParentObject() const
   {
     return mParent;
--- a/content/base/src/File.cpp
+++ b/content/base/src/File.cpp
@@ -311,23 +311,16 @@ File::IsDateUnknown() const
 }
 
 bool
 File::IsFile() const
 {
   return mImpl->IsFile();
 }
 
-void
-File::SetLazyData(const nsAString& aName, const nsAString& aContentType,
-                     uint64_t aLength, uint64_t aLastModifiedDate)
-{
-  return mImpl->SetLazyData(aName, aContentType, aLength, aLastModifiedDate);
-}
-
 already_AddRefed<File>
 File::CreateSlice(uint64_t aStart, uint64_t aLength,
                   const nsAString& aContentType,
                   ErrorResult& aRv)
 {
   nsRefPtr<FileImpl> impl = mImpl->CreateSlice(aStart, aLength,
                                                aContentType, aRv);
   if (aRv.Failed()) {
@@ -348,17 +341,17 @@ File::GetName(nsAString& aFileName)
 NS_IMETHODIMP
 File::GetPath(nsAString& aPath)
 {
   return mImpl->GetPath(aPath);
 }
 
 NS_IMETHODIMP
 File::GetLastModifiedDate(JSContext* aCx,
-                             JS::MutableHandle<JS::Value> aDate)
+                          JS::MutableHandle<JS::Value> aDate)
 {
   ErrorResult rv;
   Date value = GetLastModifiedDate(rv);
   if (rv.Failed()) {
     return rv.ErrorCode();
   }
 
   if (!value.ToDateObject(aCx, aDate)) {