From 585164f4b0ac0601980d1c285312257477359aa8 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 20 Jul 2013 14:38:35 +0000 Subject: [PATCH] [EXPLORER] - Don't compile FAT support code (WTF) if it's not used svn path=/trunk/; revision=59540 --- reactos/base/shell/explorer/shell/fatfs.cpp | 3 +++ reactos/base/shell/explorer/shell/filechild.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/base/shell/explorer/shell/fatfs.cpp b/reactos/base/shell/explorer/shell/fatfs.cpp index a667e2bedd5..5cd237280bf 100644 --- a/reactos/base/shell/explorer/shell/fatfs.cpp +++ b/reactos/base/shell/explorer/shell/fatfs.cpp @@ -30,6 +30,7 @@ #include "fatfs.h" +#ifdef _DEBUG static union DEntry* link_dir_entries(struct dirent* dir, struct Kette* K, int cnt) { @@ -634,3 +635,5 @@ int FATDrive::get_cache_buffer() // search for free cache buffer return j; } + +#endif // _DEBUG diff --git a/reactos/base/shell/explorer/shell/filechild.cpp b/reactos/base/shell/explorer/shell/filechild.cpp index d5387b6c031..2bb9af57614 100644 --- a/reactos/base/shell/explorer/shell/filechild.cpp +++ b/reactos/base/shell/explorer/shell/filechild.cpp @@ -177,7 +177,7 @@ FileChildWindow::FileChildWindow(HWND hwnd, const FileChildWndInfo& info) _root._entry = new RegistryRoot(); entry = _root.read_tree(info._path+_tcslen(_root._path)); break; - +#ifdef _DEBUG case ET_FAT: { _root._drive_type = DRIVE_UNKNOWN; _root._sort_order = SORT_NONE; @@ -194,7 +194,7 @@ FileChildWindow::FileChildWindow(HWND hwnd, const FileChildWndInfo& info) entry = _root.read_tree(info._path+_tcslen(_root._path)); } break;} - +#endif #ifndef _NO_WIN_FS default: // ET_WINDOWS _root._drive_type = GetDriveType(info._path); -- 2.17.1