[easytag] Remove some unneeded Windows compat code
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Remove some unneeded Windows compat code
- Date: Thu, 7 Jan 2016 17:51:55 +0000 (UTC)
commit 595d8554ffeae1e2e65827dfb72506d7af56fc2b
Author: David King <amigadave amigadave com>
Date: Thu Jan 7 16:39:53 2016 +0000
Remove some unneeded Windows compat code
src/win32/win32dep.c | 26 +-------------------------
src/win32/win32dep.h | 12 ------------
2 files changed, 1 insertions(+), 37 deletions(-)
---
diff --git a/src/win32/win32dep.c b/src/win32/win32dep.c
index a70b36d..fbadf0c 100644
--- a/src/win32/win32dep.c
+++ b/src/win32/win32dep.c
@@ -40,23 +40,11 @@
#include <fcntl.h>
#include <sys/timeb.h>
-#include <gtk/gtk.h>
-#include <glib.h>
-#include <glib/gstdio.h>
-
-#include <gdk/gdkwin32.h>
-
#include "resource.h"
-//#include "../log.h"
-
-#include <libintl.h>
#include "win32dep.h"
-/*
- * DEFINES & MACROS
- */
-#define _(x) gettext(x)
+const gchar * weasytag_install_dir (void);
/*
* LOCALS
@@ -174,23 +162,11 @@ void ET_Win32_Path_Remove_Trailing_Backslash (gchar *path)
}
}
-void ET_Win32_Path_Replace_Backslashes (gchar *path)
-{
- str_replace_char(path, '\\', '/');
-}
-
void ET_Win32_Path_Replace_Slashes (gchar *path)
{
str_replace_char(path, '/', '\\');
}
-/* find a default player executable */
-gchar *
-ET_Win32_Get_Audio_File_Player (void)
-{
- return g_strdup("");
-}
-
#ifndef HAVE_TRUNCATE
gint
et_w32_truncate (const gchar *path, off_t length)
diff --git a/src/win32/win32dep.h b/src/win32/win32dep.h
index 9c09544..598d7f0 100644
--- a/src/win32/win32dep.h
+++ b/src/win32/win32dep.h
@@ -36,12 +36,6 @@ G_BEGIN_DECLS
#include "config.h"
-#define lstat stat
-#define mkdir(a,b) mkdir(a)
-#define chown(a,b,c) 0
-#define chmod(a,b)
-
-
/*
* PROTOS
*/
@@ -52,15 +46,11 @@ G_BEGIN_DECLS
/* Windows helper functions */
/* Determine EasyTAG paths */
-const gchar * weasytag_install_dir (void);
const gchar * weasytag_locale_dir (void);
/* Misc */
-extern char *ET_Win32_Get_Audio_File_Player (void);
-
extern void ET_Win32_Path_Remove_Trailing_Slash (gchar *path);
extern void ET_Win32_Path_Remove_Trailing_Backslash (gchar *path);
-extern void ET_Win32_Path_Replace_Backslashes (gchar *path);
extern void ET_Win32_Path_Replace_Slashes (gchar *path);
#ifndef HAVE_MKSTEMP
@@ -80,9 +70,7 @@ extern gint et_w32_truncate (const gchar *path, off_t length);
/*
* EasyTAG specific
*/
-#undef DATADIR
#undef LOCALEDIR
-#define DATADIR weasytag_install_dir()
#define LOCALEDIR weasytag_locale_dir()
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]