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

Unified Diff: device/udev_linux/udev.cc

Issue 666653002: Cleanup: Merge device/udev_linux/udev.{cc,h} into device/udev_linux/scoped_udev.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 | « device/udev_linux/udev.h ('k') | device/udev_linux/udev.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/udev_linux/udev.cc
diff --git a/device/udev_linux/udev.cc b/device/udev_linux/udev.cc
deleted file mode 100644
index e10074b5aa74c54daf77f38ee4262d71f243b0d6..0000000000000000000000000000000000000000
--- a/device/udev_linux/udev.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <libudev.h>
-
-#include "device/udev_linux/udev.h"
-
-namespace device {
-
-void UdevDeleter::operator()(udev* dev) const {
- udev_unref(dev);
-}
-
-void UdevEnumerateDeleter::operator()(udev_enumerate* enumerate) const {
- udev_enumerate_unref(enumerate);
-}
-
-void UdevDeviceDeleter::operator()(udev_device* device) const {
- udev_device_unref(device);
-}
-
-void UdevMonitorDeleter::operator()(udev_monitor* monitor) const {
- udev_monitor_unref(monitor);
-}
-
-} // namespace device
« no previous file with comments | « device/udev_linux/udev.h ('k') | device/udev_linux/udev.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698