Skip to content

Commit 04fd3e9

Browse files
Remove unused parseMemoryAmount
https://bugs.webkit.org/show_bug.cgi?id=149611 Patch by Joseph Pecoraro <[email protected]> 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
1 parent 5353cc3 commit 04fd3e9

File tree

3 files changed

+11
-23
lines changed

3 files changed

+11
-23
lines changed

Source/JavaScriptCore/ChangeLog

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2015-09-28 Joseph Pecoraro <[email protected]>
2+
3+
Remove unused parseMemoryAmount
4+
https://bugs.webkit.org/show_bug.cgi?id=149611
5+
6+
Reviewed by Mark Lam.
7+
8+
* heap/HeapStatistics.cpp:
9+
(JSC::HeapStatistics::parseMemoryAmount): Deleted.
10+
* heap/HeapStatistics.h:
11+
112
2015-09-28 Joseph Pecoraro <[email protected]>
213

314
Web Inspector: JSGlobalRuntimeAgent unintentionally overrides InspectorRuntimeAgent destruction handling

Source/JavaScriptCore/heap/HeapStatistics.cpp

-22
Original file line numberDiff line numberDiff line change
@@ -141,28 +141,6 @@ void HeapStatistics::reportSuccess()
141141

142142
#endif // OS(UNIX)
143143

144-
size_t HeapStatistics::parseMemoryAmount(char* s)
145-
{
146-
size_t multiplier = 1;
147-
char* afterS;
148-
size_t value = strtol(s, &afterS, 10);
149-
char next = afterS[0];
150-
switch (next) {
151-
case 'K':
152-
multiplier = KB;
153-
break;
154-
case 'M':
155-
multiplier = MB;
156-
break;
157-
case 'G':
158-
multiplier = GB;
159-
break;
160-
default:
161-
break;
162-
}
163-
return value * multiplier;
164-
}
165-
166144
class StorageStatistics : public MarkedBlock::VoidFunctor {
167145
public:
168146
StorageStatistics();

Source/JavaScriptCore/heap/HeapStatistics.h

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class HeapStatistics {
4040

4141
static void initialize();
4242
static void recordGCPauseTime(double start, double end);
43-
static size_t parseMemoryAmount(char*);
4443

4544
static void showObjectStatistics(Heap*);
4645

0 commit comments

Comments
 (0)