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

Unified Diff: trunk/src/net/base/priority_queue.h

Issue 23102009: Revert 218616 "[net/dns] Perform A/AAAA queries for AF_UNSPEC re..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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
Index: trunk/src/net/base/priority_queue.h
===================================================================
--- trunk/src/net/base/priority_queue.h (revision 219026)
+++ trunk/src/net/base/priority_queue.h (working copy)
@@ -139,24 +139,6 @@
#endif
}
- // Adds |value| with |priority| to the queue. Returns a pointer to the
- // created element.
- Pointer InsertAtFront(const T& value, Priority priority) {
- DCHECK(CalledOnValidThread());
- DCHECK_LT(priority, lists_.size());
- ++size_;
- List& list = lists_[priority];
-#if !defined(NDEBUG)
- unsigned id = next_id_;
- valid_ids_.insert(id);
- ++next_id_;
- return Pointer(priority, list.insert(list.begin(),
- std::make_pair(id, value)));
-#else
- return Pointer(priority, list.insert(list.begin(), value));
-#endif
- }
-
// Removes the value pointed by |pointer| from the queue. All pointers to this
// value including |pointer| become invalid.
void Erase(const Pointer& pointer) {
@@ -231,9 +213,6 @@
size_ = 0u;
}
- // Returns the number of priorities the queue supports.
- size_t num_priorities() const { return lists_.size(); }
-
// Returns number of queued values.
size_t size() const {
DCHECK(CalledOnValidThread());
« no previous file with comments | « trunk/src/net/base/prioritized_dispatcher_unittest.cc ('k') | trunk/src/net/base/priority_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698