spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 9918fec952d1d0cfe02257073d4751fea8c730fc
parent 6fc95cece66e8f96cdcb6a4e785f7ffa37f57b21
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Mon, 27 Aug 2012 21:16:14 -0700

Remove unused spek_platform_short_path()

Diffstat:
Msrc/spek-audio.c | 2--
Msrc/spek-platform.cc | 9---------
Msrc/spek-platform.hh | 11-----------
3 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/src/spek-audio.c b/src/spek-audio.c @@ -22,8 +22,6 @@ #include <libavcodec/avcodec.h> #include <libavutil/mathematics.h> -#include "spek-platform.hh" - #include "spek-audio.h" struct spek_audio_context diff --git a/src/spek-platform.cc b/src/spek-platform.cc @@ -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; -} diff --git a/src/spek-platform.hh b/src/spek-platform.hh @@ -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