git repos / blockattack-game

commit 3a164ed3

sago007 · 2016-10-02 13:26
3a164ed38dd608634f2f2e73c5f977a5ffa9786a patch · browse files
parent 2fa537dbf723865df12738212aadab8551d7e851

Remove broken methods so that they are not used by mistake

Changed files

M source/code/Libs/NFont.cpp before
diff --git a/source/code/Libs/NFont.cpp b/source/code/Libs/NFont.cpp index 2e80c79..d1546e4 100644 --- a/source/code/Libs/NFont.cpp +++ b/source/code/Libs/NFont.cpp
@@ -56,8 +56,8 @@ using std::list;
#endif
#define MIN(a,b) ((a) < (b)? (a) : (b))
-#define MAX(a,b) ((a) > (b)? (a) : (b))
-
+#define MAX(a,b) ((a) > (b)? (a) : (b))
+
#define NFONT_BUFFER_SIZE 1024
// vsnprintf replacement adapted from Valentin Milea:
@@ -441,12 +441,6 @@ NFont::NFont()
init();
}
-NFont::NFont(const NFont& font)
-{
- init();
- // FIXME: Duplicate font data
-}
-
#ifdef NFONT_USE_SDL_GPU
NFont::NFont(TTF_Font* ttf)
{
@@ -510,12 +504,6 @@ NFont::~NFont()
}
-NFont& NFont::operator=(const NFont& font)
-{
- // FIXME: Duplicate font data
- return *this;
-}
-
void NFont::init()
{
font = FC_CreateFont();
@@ -1082,25 +1070,11 @@ void NFont::setLineSpacing(int LineSpacing)
FC_SetLineSpacing(font, LineSpacing);
}
-void NFont::setBaseline()
-{
-
-}
-
-void NFont::setBaseline(Uint16 Baseline)
-{
-
-}
-
void NFont::setDefaultColor(const Color& color)
{
FC_SetDefaultColor(font, color.to_SDL_Color());
}
-void NFont::enableTTFOwnership()
-{
-
-}