Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2014-08-07 23:09:54 +0400
committerAlexander Köplinger <alex.koeplinger@outlook.com>2014-08-08 05:28:34 +0400
commit48e112d652335da23dd1b4d5f3227e54b74d0814 (patch)
tree9a47ae5b02de2131814fa4e455dccc43720b4128 /mcs/class/System/System.IO.Ports
parentc685b217646d271e70063173171a98159109ab2b (diff)
[Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
Diffstat (limited to 'mcs/class/System/System.IO.Ports')
-rw-r--r--mcs/class/System/System.IO.Ports/SerialPort.cs2
-rw-r--r--mcs/class/System/System.IO.Ports/WinSerialStream.cs4
2 files changed, 0 insertions, 6 deletions
diff --git a/mcs/class/System/System.IO.Ports/SerialPort.cs b/mcs/class/System/System.IO.Ports/SerialPort.cs
index 6d091336989..08a9a655b2e 100644
--- a/mcs/class/System/System.IO.Ports/SerialPort.cs
+++ b/mcs/class/System/System.IO.Ports/SerialPort.cs
@@ -572,12 +572,10 @@ namespace System.IO.Ports
if (is_open)
throw new InvalidOperationException ("Port is already open");
-#if !TARGET_JVM
if (IsWindows) // Use windows kernel32 backend
stream = new WinSerialStream (port_name, baud_rate, data_bits, parity, stop_bits, dtr_enable,
rts_enable, handshake, read_timeout, write_timeout, readBufferSize, writeBufferSize);
else // Use standard unix backend
-#endif
stream = new SerialPortStream (port_name, baud_rate, data_bits, parity, stop_bits, dtr_enable,
rts_enable, handshake, read_timeout, write_timeout, readBufferSize, writeBufferSize);
diff --git a/mcs/class/System/System.IO.Ports/WinSerialStream.cs b/mcs/class/System/System.IO.Ports/WinSerialStream.cs
index fc0d45dbd20..3470f2a8768 100644
--- a/mcs/class/System/System.IO.Ports/WinSerialStream.cs
+++ b/mcs/class/System/System.IO.Ports/WinSerialStream.cs
@@ -238,7 +238,6 @@ namespace System.IO.Ports
throw new NotSupportedException();
}
-#if !TARGET_JVM
[DllImport("kernel32", SetLastError = true)]
static extern unsafe bool ReadFile (int handle, byte* buffer, int bytes_to_read,
out int bytes_read, IntPtr overlapped);
@@ -246,7 +245,6 @@ namespace System.IO.Ports
[DllImport("kernel32", SetLastError = true)]
static extern unsafe bool GetOverlappedResult (int handle, IntPtr overlapped,
ref int bytes_transfered, bool wait);
-#endif
public override int Read ([In, Out] byte [] buffer, int offset, int count)
{
@@ -283,11 +281,9 @@ namespace System.IO.Ports
return bytes_read;
}
-#if !TARGET_JVM
[DllImport("kernel32", SetLastError = true)]
static extern unsafe bool WriteFile (int handle, byte* buffer, int bytes_to_write,
out int bytes_written, IntPtr overlapped);
-#endif
public override void Write (byte [] buffer, int offset, int count)
{