]> git.jsancho.org Git - lugaru.git/blobdiff - Source/MacCompatibility.cpp
First step at cleaning image loading.
[lugaru.git] / Source / MacCompatibility.cpp
index 272288a639b09da4b3fd4551d9db6f5e2a8b66be..b5362345c6c8828f285a7b1b2fa5fde480866446 100644 (file)
@@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
 along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#if !PLATFORM_MACOSX
-
 /**> HEADER FILES <**/
 #include "MacCompatibility.h"
 
@@ -71,23 +69,6 @@ public:
 };
 static AppTime g_appTime;
 
-
-void CopyCStringToPascal( const char* src, unsigned char dst[256])
-{
-    int len = strlen( src);
-    dst[ 0] = len;
-    memcpy( dst + 1, src, len);
-}
-
-
-void CopyPascalStringToC( const unsigned char* src, char* dst)
-{
-    int len = src[ 0];
-    memcpy( dst, src + 1, len);
-    dst[ len] = 0;
-}
-
-
 AbsoluteTime UpTime()
 {
     __int64 counter;
@@ -215,10 +196,8 @@ static inline const char *getPrefPath(void)
 static int locateCorrectCase(char *buf, bool makedirs)
 {
     int rc;
-    char *ptr;
-    char *prevptr;
+    char *ptr = buf;
 
-    ptr = prevptr = buf;
     while (ptr = strchr(ptr + 1, '/')) {
         *ptr = '\0';  /* block this path section off */
         rc = locateOneElement(buf);
@@ -287,7 +266,3 @@ char* ConvertFileName( const char* orgfilename, const char *mode)
 
     return g_filename;
 }
-
-#endif
-
-