aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-02-18 10:49:17 +0000
committerFilippos Karapetis2009-02-18 10:49:17 +0000
commitfa59ce0d9f6282e08d52209d3afad3cc9f702ebb (patch)
tree325b83c49802769423e91df3740bed190370f4d0
parent1ccedde91aadc6dea2156e40c0dc094578092cf4 (diff)
downloadscummvm-rg350-fa59ce0d9f6282e08d52209d3afad3cc9f702ebb.tar.gz
scummvm-rg350-fa59ce0d9f6282e08d52209d3afad3cc9f702ebb.tar.bz2
scummvm-rg350-fa59ce0d9f6282e08d52209d3afad3cc9f702ebb.zip
Removed the unused sci_get_homedir() function
svn-id: r38466
-rw-r--r--engines/sci/include/resource.h9
-rw-r--r--engines/sci/scicore/tools.cpp27
2 files changed, 0 insertions, 36 deletions
diff --git a/engines/sci/include/resource.h b/engines/sci/include/resource.h
index 45a937fd50..bae718021b 100644
--- a/engines/sci/include/resource.h
+++ b/engines/sci/include/resource.h
@@ -243,15 +243,6 @@ sci_getcwd(void);
** Returns : (char *) a malloc'd cwd, or NULL if it couldn't be determined.
*/
-
-char *
-sci_get_homedir(void);
-/* Returns the user's home directory
-** Parameters: (void)
-** Returns : (char *) Pointer to a static buffer containing the user's home,
-** or NULL if there is no such thing.
-*/
-
int
sci_mkpath(const char *path);
/* Asserts that the specified path is available
diff --git a/engines/sci/scicore/tools.cpp b/engines/sci/scicore/tools.cpp
index 98be73cf17..981234fa6a 100644
--- a/engines/sci/scicore/tools.cpp
+++ b/engines/sci/scicore/tools.cpp
@@ -390,33 +390,6 @@ sci_mkpath(const char *path) {
}
-
-char *
-sci_get_homedir(void) {
-#ifdef WIN32
- char *_path_buf = (char*)malloc(MAX_PATH);
- char *dr = getenv("HOMEDRIVE");
- char *path = getenv("HOMEPATH");
-
- if (!dr || !path)
- return getenv("WINDIR");
-
- strncpy(_path_buf, dr, 4);
- strncat(_path_buf, path, MAX_PATH - 4);
-
- return _path_buf;
-#elif defined(__unix__) || !defined(X_DISPLAY_MISSING) || defined (__BEOS__) || defined(MACOSX)
- return getenv("HOME");
-#elif defined(__DC__)
- return NULL;
-#elif defined(__amigaos4__)
- return "/PROGDIR/";
-#else
-# error Please add a $HOME policy for your platform!
-#endif
-}
-
-
/*-- Yielding to the scheduler --*/
#ifdef HAVE_SCHED_YIELD