From 95be4ade5645c36f1a59753f84ee1f20c96bd0c7 Mon Sep 17 00:00:00 2001 From: yabause Date: Sun, 19 Oct 2008 15:52:47 +0000 Subject: [PATCH] Patch by riccardom to remove the extra read16le function. The function is not used internaly is not defined in any header file, so I guess it's ok to remove it. Feel free to revert me if I'm wrong though. --- desmume/src/readwrite.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/desmume/src/readwrite.cpp b/desmume/src/readwrite.cpp index 0444c96bc..4e976b5d6 100644 --- a/desmume/src/readwrite.cpp +++ b/desmume/src/readwrite.cpp @@ -133,16 +133,4 @@ int read32le(u32 *Bufo, std::istream *is) #endif return 1; } - -///reads a little endian 16bit value from the specified file -int read16le(char *d, FILE *fp) -{ -#ifdef LOCAL_LE - return((fread(d,1,2,fp)<2)?0:2); -#else - int ret; - ret=fread(d+1,1,1,fp); - ret+=fread(d,1,1,fp); - return ret<2?0:2; -#endif -} +