diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 07:01:17 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 07:01:17 +0000 |
commit | 6621506ccd0cfbe636f35a4922841cb5ab3c29d6 (patch) | |
tree | 51af139ffcd741e749abe8aa9eabc740efc7d726 /remoting | |
parent | 5aa90e1e13fddf27495b5e76b5400401e891b03f (diff) | |
download | chromium_src-6621506ccd0cfbe636f35a4922841cb5ab3c29d6.zip chromium_src-6621506ccd0cfbe636f35a4922841cb5ab3c29d6.tar.gz chromium_src-6621506ccd0cfbe636f35a4922841cb5ab3c29d6.tar.bz2 |
Removed unused X11 graphics context.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6410027
Patch from Jamie Walch <jamiewalch@chromium.org>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73593 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/event_executor_linux.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc index add03fc..1666351 100644 --- a/remoting/host/event_executor_linux.cc +++ b/remoting/host/event_executor_linux.cc @@ -219,7 +219,6 @@ class EventExecutorLinuxPimpl { // X11 graphics context. Display* display_; - GC gc_; Window root_window_; int width_; int height_; @@ -231,7 +230,6 @@ class EventExecutorLinuxPimpl { EventExecutorLinuxPimpl::EventExecutorLinuxPimpl(EventExecutorLinux* executor) : executor_(executor), display_(NULL), - gc_(NULL), root_window_(BadValue), width_(0), height_(0) { @@ -257,13 +255,6 @@ bool EventExecutorLinuxPimpl::Init() { return false; } - gc_ = XCreateGC(display_, root_window_, 0, NULL); - if (gc_ == NULL) { - LOG(ERROR) << "Unable to get graphics context"; - DeinitXlib(); - return false; - } - // TODO(ajwong): Do we want to check the major/minor version at all for XTest? int major = 0; int minor = 0; @@ -352,13 +343,6 @@ void EventExecutorLinuxPimpl::HandleMouse(const MouseEvent* event) { void EventExecutorLinuxPimpl::DeinitXlib() { // TODO(ajwong): We should expose a "close" or "shutdown" method. - if (gc_) { - if (!XFreeGC(display_, gc_)) { - LOG(ERROR) << "Unable to free Xlib GC"; - } - gc_ = NULL; - } - if (display_) { if (!XCloseDisplay(display_)) { LOG(ERROR) << "Unable to close the Xlib Display."; |