From 3728835e4083c862c9b03dd5ffdb5941f34f9da5 Mon Sep 17 00:00:00 2001
From: Luke <noryb009@gmail.com>
Date: Sun, 1 Dec 2013 12:22:29 +0000
Subject: [PATCH] Remove references to B_COMMON_

---
 Source/Archiver/Archiver.cpp      | 13 +------------
 Source/Beezer/FSUtils/FSUtils.cpp |  2 +-
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/Source/Archiver/Archiver.cpp b/Source/Archiver/Archiver.cpp
index c272333..7b57313 100644
--- a/Source/Archiver/Archiver.cpp
+++ b/Source/Archiver/Archiver.cpp
@@ -625,7 +625,7 @@ status_t Archiver::SetComment(char* commentStr, const char* tempDirPath)
 bool Archiver::IsBinaryFound(char* filePath, const char* fileName) const
 {
     // Check if the given fileName exists in the given dir, if so copy the full path of fileName to filePath
-    // Path priority  <appdir>/workers -> B_SYSTEM_BIN_DIRECTORY -> B_COMMON_BIN_DIRECTORY
+    // Path priority  <appdir>/workers -> B_SYSTEM_BIN_DIRECTORY
     BPath binPath;
     app_info appInfo;
     be_app->GetAppInfo(&appInfo);
@@ -652,17 +652,6 @@ bool Archiver::IsBinaryFound(char* filePath, const char* fileName) const
         }
     }
 
-    if (find_directory(B_COMMON_BIN_DIRECTORY, &binPath) == B_OK)
-    {
-        binPath.Append(fileName);
-        BEntry entry(binPath.Path(), true);
-        if (entry.Exists())
-        {
-            strcpy(filePath, binPath.Path());
-            return true;
-        }
-    }
-
     // TODO full search of $PATH
 
     filePath = '\0';
diff --git a/Source/Beezer/FSUtils/FSUtils.cpp b/Source/Beezer/FSUtils/FSUtils.cpp
index a651c58..8fbb01d 100644
--- a/Source/Beezer/FSUtils/FSUtils.cpp
+++ b/Source/Beezer/FSUtils/FSUtils.cpp
@@ -177,7 +177,7 @@ BString CreateTempDirectory(const char* prefix, BDirectory** createdDir, bool cr
         prefixStr << prefix << "_";
 
     BPath tmpPath;
-    find_directory(B_COMMON_TEMP_DIRECTORY, &tmpPath, true);
+    find_directory(B_SYSTEM_TEMP_DIRECTORY, &tmpPath, true);
     BString tempDirName = tempnam(const_cast<char*>(tmpPath.Path()), const_cast<char*>(prefixStr.String()));
 
     // Further random the dir name (the below number is a prime)
-- 
1.8.3.4

