Commit df6cf99f authored by hiroshige's avatar hiroshige Committed by Commit bot

Remove unused Internals::setMemoryCacheCapacities()

According to codesearch, there are no usage of setMemoryCacheCapacities from
JavaScript in the tests.

BUG=603462

Review-Url: https://codereview.chromium.org/2416803002
Cr-Commit-Position: refs/heads/master@{#427271}
parent a13132df
...@@ -1847,18 +1847,6 @@ String Internals::dumpRefCountedInstanceCounts() const { ...@@ -1847,18 +1847,6 @@ String Internals::dumpRefCountedInstanceCounts() const {
return WTF::dumpRefCountedInstanceCounts(); return WTF::dumpRefCountedInstanceCounts();
} }
Vector<unsigned long> Internals::setMemoryCacheCapacities(
unsigned long minDeadBytes,
unsigned long maxDeadBytes,
unsigned long totalBytes) {
Vector<unsigned long> result;
result.append(memoryCache()->minDeadCapacity());
result.append(memoryCache()->maxDeadCapacity());
result.append(memoryCache()->capacity());
memoryCache()->setCapacities(minDeadBytes, maxDeadBytes, totalBytes);
return result;
}
bool Internals::hasGrammarMarker(Document* document, int from, int length) { bool Internals::hasGrammarMarker(Document* document, int from, int length) {
ASSERT(document); ASSERT(document);
if (!document->frame()) if (!document->frame())
......
...@@ -333,9 +333,6 @@ class Internals final : public GarbageCollectedFinalized<Internals>, ...@@ -333,9 +333,6 @@ class Internals final : public GarbageCollectedFinalized<Internals>,
String dumpRefCountedInstanceCounts() const; String dumpRefCountedInstanceCounts() const;
LocalDOMWindow* openDummyInspectorFrontend(const String& url); LocalDOMWindow* openDummyInspectorFrontend(const String& url);
void closeDummyInspectorFrontend(); void closeDummyInspectorFrontend();
Vector<unsigned long> setMemoryCacheCapacities(unsigned long minDeadBytes,
unsigned long maxDeadBytes,
unsigned long totalBytes);
String counterValue(Element*); String counterValue(Element*);
......
...@@ -204,7 +204,6 @@ ...@@ -204,7 +204,6 @@
unsigned long numberOfLiveNodes(); unsigned long numberOfLiveNodes();
unsigned long numberOfLiveDocuments(); unsigned long numberOfLiveDocuments();
DOMString dumpRefCountedInstanceCounts(); DOMString dumpRefCountedInstanceCounts();
sequence<unsigned long> setMemoryCacheCapacities(unsigned long minDeadBytes, unsigned long maxDeadBytes, unsigned long totalBytes);
DOMString counterValue(Element element); DOMString counterValue(Element element);
[RaisesException] long pageNumber(Element element, optional float pageWidth = 800, optional float pageHeight = 600); [RaisesException] long pageNumber(Element element, optional float pageWidth = 800, optional float pageHeight = 600);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment