Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1306)

Unified Diff: runtime/platform/growable_array.h

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/platform/hashmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/growable_array.h
diff --git a/runtime/platform/growable_array.h b/runtime/platform/growable_array.h
index 4a449e001fa91ac02956ed838467fd597e014ae5..b399cd9c197856a9f0ee91f3acc901b4628dcfdb 100644
--- a/runtime/platform/growable_array.h
+++ b/runtime/platform/growable_array.h
@@ -131,7 +131,6 @@ class BaseGrowableArray : public B {
DISALLOW_COPY_AND_ASSIGN(BaseGrowableArray);
};
-
template <typename T, typename B, typename Allocator>
inline void BaseGrowableArray<T, B, Allocator>::Sort(int compare(const T*,
const T*)) {
@@ -139,7 +138,6 @@ inline void BaseGrowableArray<T, B, Allocator>::Sort(int compare(const T*,
qsort(data_, length_, sizeof(T), reinterpret_cast<CompareFunction>(compare));
}
-
template <typename T, typename B, typename Allocator>
void BaseGrowableArray<T, B, Allocator>::Resize(intptr_t new_length) {
if (new_length > capacity_) {
@@ -153,7 +151,6 @@ void BaseGrowableArray<T, B, Allocator>::Resize(intptr_t new_length) {
length_ = new_length;
}
-
template <typename T, typename B, typename Allocator>
void BaseGrowableArray<T, B, Allocator>::SetLength(intptr_t new_length) {
if (new_length > capacity_) {
@@ -165,7 +162,6 @@ void BaseGrowableArray<T, B, Allocator>::SetLength(intptr_t new_length) {
length_ = new_length;
}
-
class Malloc : public AllStatic {
public:
template <class T>
@@ -184,10 +180,8 @@ class Malloc : public AllStatic {
}
};
-
class EmptyBase {};
-
template <typename T>
class MallocGrowableArray : public BaseGrowableArray<T, EmptyBase, Malloc> {
public:
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/platform/hashmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698