Removed unused fields in field class
This commit is contained in:
parent
c7e19ce667
commit
20d8f4e3f7
|
@ -352,12 +352,7 @@ namespace libtorrent
|
||||||
#endif // TORRENT_WINDOWS
|
#endif // TORRENT_WINDOWS
|
||||||
|
|
||||||
int m_open_mode;
|
int m_open_mode;
|
||||||
#if defined TORRENT_WINDOWS || defined TORRENT_LINUX
|
|
||||||
mutable int m_sector_size;
|
|
||||||
#endif
|
|
||||||
#if defined TORRENT_WINDOWS
|
#if defined TORRENT_WINDOWS
|
||||||
mutable int m_cluster_size;
|
|
||||||
|
|
||||||
static bool has_manage_volume_privs;
|
static bool has_manage_volume_privs;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1263,9 +1263,6 @@ namespace libtorrent
|
||||||
file::file()
|
file::file()
|
||||||
: m_file_handle(INVALID_HANDLE_VALUE)
|
: m_file_handle(INVALID_HANDLE_VALUE)
|
||||||
, m_open_mode(0)
|
, m_open_mode(0)
|
||||||
#if defined TORRENT_WINDOWS || defined TORRENT_LINUX
|
|
||||||
, m_sector_size(0)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
#ifdef TORRENT_DISK_STATS
|
#ifdef TORRENT_DISK_STATS
|
||||||
m_file_id = 0;
|
m_file_id = 0;
|
||||||
|
@ -1275,9 +1272,6 @@ namespace libtorrent
|
||||||
file::file(std::string const& path, int mode, error_code& ec)
|
file::file(std::string const& path, int mode, error_code& ec)
|
||||||
: m_file_handle(INVALID_HANDLE_VALUE)
|
: m_file_handle(INVALID_HANDLE_VALUE)
|
||||||
, m_open_mode(0)
|
, m_open_mode(0)
|
||||||
#if defined TORRENT_WINDOWS || defined TORRENT_LINUX
|
|
||||||
, m_sector_size(0)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
#ifdef TORRENT_DISK_STATS
|
#ifdef TORRENT_DISK_STATS
|
||||||
m_file_id = 0;
|
m_file_id = 0;
|
||||||
|
@ -1566,9 +1560,6 @@ typedef struct _FILE_ALLOCATED_RANGE_BUFFER {
|
||||||
#ifdef TORRENT_DISK_STATS
|
#ifdef TORRENT_DISK_STATS
|
||||||
m_file_id = 0;
|
m_file_id = 0;
|
||||||
#endif
|
#endif
|
||||||
#if defined TORRENT_WINDOWS || defined TORRENT_LINUX
|
|
||||||
m_sector_size = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!is_open()) return;
|
if (!is_open()) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue