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

Unified Diff: base/message_pump_libevent.cc

Issue 10534169: base: Remove an unused member from MessagePumpLibevent::FileDescriptorWatcher (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 | « base/message_pump_libevent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_pump_libevent.cc
diff --git a/base/message_pump_libevent.cc b/base/message_pump_libevent.cc
index 0b4d9c8f064668e2ef631ecb8894d6e760d2fd55..b948cc0b5b5f0311bd731f0472ddf09be5e6fb3f 100644
--- a/base/message_pump_libevent.cc
+++ b/base/message_pump_libevent.cc
@@ -58,8 +58,7 @@ static int SetNonBlocking(int fd) {
}
MessagePumpLibevent::FileDescriptorWatcher::FileDescriptorWatcher()
- : is_persistent_(false),
- event_(NULL),
+ : event_(NULL),
pump_(NULL),
watcher_(NULL),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
@@ -84,12 +83,10 @@ bool MessagePumpLibevent::FileDescriptorWatcher::StopWatchingFileDescriptor() {
return (rv == 0);
}
-void MessagePumpLibevent::FileDescriptorWatcher::Init(event *e,
- bool is_persistent) {
+void MessagePumpLibevent::FileDescriptorWatcher::Init(event *e) {
DCHECK(e);
DCHECK(!event_);
- is_persistent_ = is_persistent;
event_ = e;
}
@@ -203,7 +200,7 @@ bool MessagePumpLibevent::WatchFileDescriptor(int fd,
}
// Transfer ownership of evt to controller.
- controller->Init(evt.release(), persistent);
+ controller->Init(evt.release());
controller->set_watcher(delegate);
controller->set_pump(this);
« no previous file with comments | « base/message_pump_libevent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698