From 84dc17d615c5765d6c4de7aa3f2c069afd63d6e2 Mon Sep 17 00:00:00 2001
From: Russell Taylor <taylorrj@ornl.gov>
Date: Mon, 10 Mar 2008 15:41:30 +0000
Subject: [PATCH] Remove the method in ConfigService that's causing a test
 failure on the Windows build server. Fixes #113.

---
 Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h |  1 -
 Code/Mantid/Kernel/src/ConfigService.cpp            | 11 +----------
 Code/Mantid/Kernel/test/ConfigServiceTest.h         |  2 +-
 3 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h b/Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h
index 7fd04e4e306..a5cc2749303 100644
--- a/Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h
+++ b/Code/Mantid/Kernel/inc/MantidKernel/ConfigService.h
@@ -130,7 +130,6 @@ namespace Kernel
 		std::string getOSArchitecture();
 		std::string getOSVersion();	
 		std::string getCurrentDir();
-		std::string getHomeDir();
 		std::string getTempDir();
 
 	private:
diff --git a/Code/Mantid/Kernel/src/ConfigService.cpp b/Code/Mantid/Kernel/src/ConfigService.cpp
index f226f20864d..5f6ee1fea53 100644
--- a/Code/Mantid/Kernel/src/ConfigService.cpp
+++ b/Code/Mantid/Kernel/src/ConfigService.cpp
@@ -184,16 +184,7 @@ namespace Kernel
 	{
 		return m_pSysConfig->getString("system.currentDir");
 	}
-	  
-  /** Gets the absolute path of the home directory 
-   *
-   * @returns The absolute path of the home directory 
-   */
-	std::string ConfigServiceImpl::getHomeDir()
-	{
-		return m_pSysConfig->getString("system.homeDir");
-	}
-	
+	  	
   /** Gets the absolute path of the temp directory 
    *
    * @returns The absolute path of the temp directory 
diff --git a/Code/Mantid/Kernel/test/ConfigServiceTest.h b/Code/Mantid/Kernel/test/ConfigServiceTest.h
index 7eb695064bc..07451886e57 100644
--- a/Code/Mantid/Kernel/test/ConfigServiceTest.h
+++ b/Code/Mantid/Kernel/test/ConfigServiceTest.h
@@ -59,7 +59,7 @@ public:
 	  TS_ASSERT_LESS_THAN(0, osCompName.length()); //check that the string is not empty
 	  TS_ASSERT_LESS_THAN(0, ConfigService::Instance().getOSVersion().length()); //check that the string is not empty
 	  TS_ASSERT_LESS_THAN(0, ConfigService::Instance().getCurrentDir().length()); //check that the string is not empty
-	  TS_ASSERT_LESS_THAN(0, ConfigService::Instance().getHomeDir().length()); //check that the string is not empty
+//	  TS_ASSERT_LESS_THAN(0, ConfigService::Instance().getHomeDir().length()); //check that the string is not empty
 	  TS_ASSERT_LESS_THAN(0, ConfigService::Instance().getTempDir().length()); //check that the string is not empty
   }
 
-- 
GitLab