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

Unified Diff: runtime/vm/hash_map.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/vm/handles_test.cc ('k') | runtime/vm/hash_map_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/hash_map.h
diff --git a/runtime/vm/hash_map.h b/runtime/vm/hash_map.h
index 3bb99649bf0240f62da05fe71193650fc6115c76..4e6b0bc647a97585ae44f68b17b558330166aeaf 100644
--- a/runtime/vm/hash_map.h
+++ b/runtime/vm/hash_map.h
@@ -113,7 +113,6 @@ class BaseDirectChainedHashMap : public B {
Allocator* allocator_;
};
-
template <typename KeyValueTrait, typename B, typename Allocator>
BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::BaseDirectChainedHashMap(
const BaseDirectChainedHashMap& other)
@@ -131,7 +130,6 @@ BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::BaseDirectChainedHashMap(
memmove(lists_, other.lists_, lists_size_ * sizeof(HashMapListElement));
}
-
template <typename KeyValueTrait, typename B, typename Allocator>
typename KeyValueTrait::Pair*
BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Lookup(
@@ -157,7 +155,6 @@ BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Lookup(
return NULL;
}
-
template <typename KeyValueTrait, typename B, typename Allocator>
typename KeyValueTrait::Value
BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::LookupValue(
@@ -168,7 +165,6 @@ BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::LookupValue(
return (pair == NULL) ? kNoValue : KeyValueTrait::ValueOf(*pair);
}
-
template <typename KeyValueTrait, typename B, typename Allocator>
typename KeyValueTrait::Pair*
BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Iterator::Next() {
@@ -203,7 +199,6 @@ BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Iterator::Next() {
return NULL;
}
-
template <typename KeyValueTrait, typename B, typename Allocator>
void BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Resize(
intptr_t new_size) {
@@ -253,7 +248,6 @@ void BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Resize(
allocator_->template Free<HashMapListElement>(old_array, old_size);
}
-
template <typename KeyValueTrait, typename B, typename Allocator>
void BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::ResizeLists(
intptr_t new_size) {
@@ -279,7 +273,6 @@ void BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::ResizeLists(
allocator_->template Free<HashMapListElement>(old_lists, old_size);
}
-
template <typename KeyValueTrait, typename B, typename Allocator>
void BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Insert(
typename KeyValueTrait::Pair kv) {
@@ -311,7 +304,6 @@ void BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Insert(
}
}
-
template <typename KeyValueTrait, typename B, typename Allocator>
bool BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Remove(
typename KeyValueTrait::Key key) {
@@ -373,7 +365,6 @@ bool BaseDirectChainedHashMap<KeyValueTrait, B, Allocator>::Remove(
return true;
}
-
template <typename KeyValueTrait>
class DirectChainedHashMap
: public BaseDirectChainedHashMap<KeyValueTrait, ValueObject> {
@@ -387,7 +378,6 @@ class DirectChainedHashMap
ASSERT_NOTNULL(zone)) {}
};
-
template <typename KeyValueTrait>
class MallocDirectChainedHashMap
: public BaseDirectChainedHashMap<KeyValueTrait, EmptyBase, Malloc> {
@@ -396,7 +386,6 @@ class MallocDirectChainedHashMap
: BaseDirectChainedHashMap<KeyValueTrait, EmptyBase, Malloc>(NULL) {}
};
-
template <typename T>
class PointerKeyValueTrait {
public:
@@ -413,7 +402,6 @@ class PointerKeyValueTrait {
static inline bool IsKeyEqual(Pair kv, Key key) { return kv->Equals(key); }
};
-
template <typename T>
class NumbersKeyValueTrait {
public:
@@ -427,7 +415,6 @@ class NumbersKeyValueTrait {
static inline bool IsKeyEqual(Pair kv, Key key) { return kv.first() == key; }
};
-
template <typename K, typename V>
class RawPointerKeyValueTrait {
public:
« no previous file with comments | « runtime/vm/handles_test.cc ('k') | runtime/vm/hash_map_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698