From 097b0334ad22fbbe375963043e8afb4369b95bba Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 23 Nov 2016 09:52:59 -0800 Subject: transport: Removed some superfluous variables --- host/lib/transport/nirio/niriok_proxy_impl_v1.cpp | 10 +++++----- host/lib/transport/nirio_zero_copy.cpp | 2 -- host/lib/transport/udp_zero_copy.cpp | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) (limited to 'host/lib/transport') diff --git a/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp b/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp index 444e98f1b..dbe9e4abd 100644 --- a/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp +++ b/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp @@ -49,11 +49,11 @@ const uint32_t NIRIO_IOCTL_GET_IFACE_NUM = METHOD_BUFFERED, FILE_READ_DATA); ///< Get the interface number for a device -const uint32_t NIRIO_IOCTL_GET_SESSION = - CTL_CODE(FILE_DEVICE_UNKNOWN, - NIRIO_IOCTL_BASE + 8, - METHOD_BUFFERED, - FILE_READ_ACCESS); ///< Gets a previously opened session to a device +//const uint32_t NIRIO_IOCTL_GET_SESSION = + //CTL_CODE(FILE_DEVICE_UNKNOWN, + //NIRIO_IOCTL_BASE + 8, + //METHOD_BUFFERED, + //FILE_READ_ACCESS); ///< Gets a previously opened session to a device const uint32_t NIRIO_IOCTL_POST_OPEN = CTL_CODE(FILE_DEVICE_UNKNOWN, diff --git a/host/lib/transport/nirio_zero_copy.cpp b/host/lib/transport/nirio_zero_copy.cpp index 1eb431a19..8bec49a5f 100644 --- a/host/lib/transport/nirio_zero_copy.cpp +++ b/host/lib/transport/nirio_zero_copy.cpp @@ -75,7 +75,6 @@ private: nirio_fifo& _fifo; fifo_data_t* _typed_buffer; const size_t _frame_size; - size_t _num_frames; }; class nirio_zero_copy_msb : public managed_send_buffer @@ -116,7 +115,6 @@ private: nirio_fifo& _fifo; fifo_data_t* _typed_buffer; const size_t _frame_size; - size_t _num_frames; }; class nirio_zero_copy_impl : public nirio_zero_copy { diff --git a/host/lib/transport/udp_zero_copy.cpp b/host/lib/transport/udp_zero_copy.cpp index 70fb5b552..036a84a05 100644 --- a/host/lib/transport/udp_zero_copy.cpp +++ b/host/lib/transport/udp_zero_copy.cpp @@ -32,7 +32,7 @@ using namespace uhd::transport; namespace asio = boost::asio; //A reasonable number of frames for send/recv and async/sync -static const size_t DEFAULT_NUM_FRAMES = 32; +//static const size_t DEFAULT_NUM_FRAMES = 32; /*********************************************************************** * Check registry for correct fast-path setting (windows only) -- cgit v1.2.3