[banshee] Cleanup some WriteLines, syntax
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Cleanup some WriteLines, syntax
- Date: Fri, 13 Aug 2010 22:52:46 +0000 (UTC)
commit ae1dcc10d1b0f64998891f9370a32364e4c15447
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Jul 27 09:05:57 2010 -0700
Cleanup some WriteLines, syntax
.../Banshee.Hardware.Gio/HardwareManager.cs | 1 +
src/Libraries/Mtp/Mtp/MtpDevice.cs | 7 +------
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/HardwareManager.cs b/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/HardwareManager.cs
index 26971b9..6640252 100644
--- a/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/HardwareManager.cs
+++ b/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/HardwareManager.cs
@@ -69,6 +69,7 @@ namespace Banshee.Hardware.Gio
}
#region IHardwareManager
+
public event DeviceAddedHandler DeviceAdded;
public event DeviceRemovedHandler DeviceRemoved;
diff --git a/src/Libraries/Mtp/Mtp/MtpDevice.cs b/src/Libraries/Mtp/Mtp/MtpDevice.cs
index afaa97e..257d17a 100644
--- a/src/Libraries/Mtp/Mtp/MtpDevice.cs
+++ b/src/Libraries/Mtp/Mtp/MtpDevice.cs
@@ -272,15 +272,10 @@ namespace Mtp
{
int count = 0;
IntPtr ptr = IntPtr.Zero;
- Console.WriteLine ("Getting raw devices");
LIBMTP_Detect_Raw_Devices (ref ptr, ref count);
- Console.WriteLine ("got raw devices");
List<RawMtpDevice> devices = new List<RawMtpDevice>();
- Console.WriteLine ("Count is:{0}", count);
- Console.WriteLine ("initial is: {0}", ptr);
- for (int i = 0; i < count; i++)
- {
+ for (int i = 0; i < count; i++) {
IntPtr offset = Offset (ptr, i * Marshal.SizeOf (typeof (RawDeviceStruct)));
RawDeviceStruct d = (RawDeviceStruct)Marshal.PtrToStructure (offset, typeof(RawDeviceStruct));
devices.Add(new RawMtpDevice (d));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]