Remove unused spek_platform_short_path()

This commit is contained in:
Alexander Kojevnikov 2012-08-27 21:16:14 -07:00
parent 6fc95cece6
commit 9918fec952
3 changed files with 0 additions and 22 deletions

View File

@ -22,8 +22,6 @@
#include <libavcodec/avcodec.h>
#include <libavutil/mathematics.h>
#include "spek-platform.hh"
#include "spek-audio.h"
struct spek_audio_context

View File

@ -68,12 +68,3 @@ double SpekPlatform::font_scale()
return 1.0;
#endif
}
char * spek_platform_short_path(const char *path)
{
#ifdef OS_WIN
wxFileName file_name(wxString(path, wxConvUTF8));
return strdup(file_name.GetShortPath().char_str(wxConvFile));
#endif
return NULL;
}

View File

@ -19,7 +19,6 @@
#ifndef SPEK_PLATFORM_HH_
#define SPEK_PLATFORM_HH_
#ifdef __cplusplus
#include <wx/string.h>
class SpekPlatform
@ -39,14 +38,4 @@ public:
static double font_scale();
};
extern "C" {
#endif
// Returns a 8.3 version of the UTF8-encoded path on Windows and NULL on other platforms.
char * spek_platform_short_path(const char *path);
#ifdef __cplusplus
}
#endif
#endif