From d541bc806488ed099dd39add08dc466edf7af194 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 31 Jan 2015 19:21:48 +0100 Subject: [PATCH] Remove unused functions in nifstream --- components/nif/nifstream.hpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/components/nif/nifstream.hpp b/components/nif/nifstream.hpp index cc14971fd..6c5e83eeb 100644 --- a/components/nif/nifstream.hpp +++ b/components/nif/nifstream.hpp @@ -37,31 +37,7 @@ public: NIFStream (NIFFile * file, Ogre::DataStreamPtr inp): file (file), inp (inp) {} - /************************************************* - Parser functions - ****************************************************/ - - template - 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 - void read (NIFStream* nif, T & Value) - { - Value = GetHandler ::read (nif); - } - void skip(size_t size) { inp->skip(size); } - void read (void * data, size_t size) { inp->read (data, size); } char getChar() { return read_byte(); } short getShort() { return read_le16(); }