(General/Settings) Remove some things we won't need in Minifen

This commit is contained in:
twinaphex 2012-11-13 22:54:13 +01:00
parent 79e1cb68fb
commit 03c0aeecfc
4 changed files with 0 additions and 53 deletions

View File

@ -2,7 +2,6 @@
#define _MDFN_DRIVERH #define _MDFN_DRIVERH
#include "mednafen-types.h" #include "mednafen-types.h"
#include <stdio.h> // REMOVE ME eventually
#include "git.h" #include "git.h"
#include "settings-driver.h" #include "settings-driver.h"
#include "mednafen-driver.h" #include "mednafen-driver.h"

View File

@ -166,43 +166,6 @@ std::string MDFN_EvalFIP(const std::string &dir_path, const std::string &rel_pat
} }
} }
typedef std::map<char, std::string> FSMap;
static std::string EvalPathFS(const std::string &fstring, /*const (won't work because entry created if char doesn't exist) */ FSMap &fmap)
{
std::string ret = "";
const char *str = fstring.c_str();
bool in_spec = false;
while(*str)
{
int c = *str;
if(!in_spec && c == '%')
in_spec = true;
else if(in_spec == true)
{
if(c == '%')
ret = ret + std::string("%");
else
ret = ret + fmap[(char)c];
in_spec = false;
}
else
{
char ct[2];
ct[0] = c;
ct[1] = 0;
ret += std::string(ct);
}
str++;
}
return(ret);
}
const char * GetFNComponent(const char *str) const char * GetFNComponent(const char *str)
{ {
const char *tp1; const char *tp1;
@ -228,18 +191,6 @@ const char * GetFNComponent(const char *str)
return(str); return(str);
} }
char *MDFN_RemoveControlChars(char *str)
{
char *orig = str;
if(str)
while(*str)
{
if(*str < 0x20) *str = 0x20;
str++;
}
return(orig);
}
// Remove whitespace from beginning of string // Remove whitespace from beginning of string
void MDFN_ltrim(char *string) void MDFN_ltrim(char *string)
{ {

View File

@ -11,7 +11,6 @@ void GetFileBase(const char *f);
bool MDFN_IsFIROPSafe(const std::string &path); bool MDFN_IsFIROPSafe(const std::string &path);
std::string MDFN_MakeFName(int type, int id1, const char *cd1); std::string MDFN_MakeFName(int type, int id1, const char *cd1);
char *MDFN_RemoveControlChars(char *str);
void MDFN_ltrim(char *string); void MDFN_ltrim(char *string);
void MDFN_rtrim(char *string); void MDFN_rtrim(char *string);

View File

@ -19,9 +19,7 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <string> #include <string>
#include <list>
#include "settings.h" #include "settings.h"
#include "md5.h"
bool MDFN_SaveSettings(const char *path) bool MDFN_SaveSettings(const char *path)
{ {