Bug 568612 followup: remove now-unused helper-function GetDocURI. r=roc
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 10 Jun 2010 11:26:28 -0700
changeset 43477 3675017ddaa10a7e34def3b0b656b1c19ddc6efa
parent 43476 6efd0963eae957d88ef96f2e1597b1142f3cf824
child 43478 2b619f9ca0bdcc0629461236fc09df0d54a33f8e
push id13728
push userdholbert@mozilla.com
push dateThu, 10 Jun 2010 18:27:12 +0000
treeherdermozilla-central@792cd3e8aa59 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs568612
milestone1.9.3a6pre
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 568612 followup: remove now-unused helper-function GetDocURI. r=roc
layout/generic/nsGfxScrollFrame.cpp
--- a/layout/generic/nsGfxScrollFrame.cpp
+++ b/layout/generic/nsGfxScrollFrame.cpp
@@ -3294,27 +3294,16 @@ nsGfxScrollFrameInner::GetCoordAttribute
       // convert it to an integer
       defaultValue = nsPresContext::CSSPixelsToAppUnits(value.ToInteger(&error));
     }
   }
 
   return defaultValue;
 }
 
-static nsIURI* GetDocURI(nsIFrame* aFrame)
-{
-  nsIPresShell* shell = aFrame->PresContext()->GetPresShell();
-  if (!shell)
-    return nsnull;
-  nsIDocument* doc = shell->GetDocument();
-  if (!doc)
-    return nsnull;
-  return doc->GetDocumentURI();
-}
-
 nsPresState*
 nsGfxScrollFrameInner::SaveState(nsIStatefulFrame::SpecialStateID aStateID)
 {
   // Don't save "normal" state for the root scrollframe; that's
   // handled via the eDocumentScrollState state id
   if (mIsRoot && aStateID == nsIStatefulFrame::eNoID) {
     return nsnull;
   }