forked from teamnwah/openmw-tes3coop
Remove unused functions in nifstream
This commit is contained in:
parent
86165d38d2
commit
d541bc8064
1 changed files with 0 additions and 24 deletions
|
@ -37,31 +37,7 @@ public:
|
||||||
|
|
||||||
NIFStream (NIFFile * file, Ogre::DataStreamPtr inp): file (file), inp (inp) {}
|
NIFStream (NIFFile * file, Ogre::DataStreamPtr inp): file (file), inp (inp) {}
|
||||||
|
|
||||||
/*************************************************
|
|
||||||
Parser functions
|
|
||||||
****************************************************/
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
struct GetHandler
|
|
||||||
{
|
|
||||||
typedef T (NIFStream::*fn_t)();
|
|
||||||
|
|
||||||
static const fn_t sValue; // this is specialized per supported type in the .cpp file
|
|
||||||
|
|
||||||
static T read (NIFStream* nif)
|
|
||||||
{
|
|
||||||
return (nif->*sValue) ();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
void read (NIFStream* nif, T & Value)
|
|
||||||
{
|
|
||||||
Value = GetHandler <T>::read (nif);
|
|
||||||
}
|
|
||||||
|
|
||||||
void skip(size_t size) { inp->skip(size); }
|
void skip(size_t size) { inp->skip(size); }
|
||||||
void read (void * data, size_t size) { inp->read (data, size); }
|
|
||||||
|
|
||||||
char getChar() { return read_byte(); }
|
char getChar() { return read_byte(); }
|
||||||
short getShort() { return read_le16(); }
|
short getShort() { return read_le16(); }
|
||||||
|
|
Loading…
Reference in a new issue