Remove unused parseMemoryAmount
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Sep 2015 02:38:00 +0000 (02:38 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Sep 2015 02:38:00 +0000 (02:38 +0000)
https://bugs.webkit.org/show_bug.cgi?id=149611

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-09-28
Reviewed by Mark Lam.

* heap/HeapStatistics.cpp:
(JSC::HeapStatistics::parseMemoryAmount): Deleted.
* heap/HeapStatistics.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@190302 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/heap/HeapStatistics.cpp
Source/JavaScriptCore/heap/HeapStatistics.h

index c3f73f6..124312a 100644 (file)
@@ -1,5 +1,16 @@
 2015-09-28  Joseph Pecoraro  <pecoraro@apple.com>
 
+        Remove unused parseMemoryAmount
+        https://bugs.webkit.org/show_bug.cgi?id=149611
+
+        Reviewed by Mark Lam.
+
+        * heap/HeapStatistics.cpp:
+        (JSC::HeapStatistics::parseMemoryAmount): Deleted.
+        * heap/HeapStatistics.h:
+
+2015-09-28  Joseph Pecoraro  <pecoraro@apple.com>
+
         Web Inspector: JSGlobalRuntimeAgent unintentionally overrides InspectorRuntimeAgent destruction handling
         https://bugs.webkit.org/show_bug.cgi?id=149537
 
index bc5465f..4b0d284 100644 (file)
@@ -141,28 +141,6 @@ void HeapStatistics::reportSuccess()
 
 #endif // OS(UNIX)
 
-size_t HeapStatistics::parseMemoryAmount(char* s)
-{
-    size_t multiplier = 1;
-    char* afterS;
-    size_t value = strtol(s, &afterS, 10);
-    char next = afterS[0];
-    switch (next) {
-    case 'K':
-        multiplier = KB;
-        break;
-    case 'M':
-        multiplier = MB;
-        break;
-    case 'G':
-        multiplier = GB;
-        break;
-    default:
-        break;
-    }
-    return value * multiplier;
-}
-
 class StorageStatistics : public MarkedBlock::VoidFunctor {
 public:
     StorageStatistics();
index 13a29ef..df36ecb 100644 (file)
@@ -40,7 +40,6 @@ public:
 
     static void initialize();
     static void recordGCPauseTime(double start, double end);
-    static size_t parseMemoryAmount(char*);
 
     static void showObjectStatistics(Heap*);