diff --git a/include/osgText/Text b/include/osgText/Text index eea2f81bf..de8e166ee 100644 --- a/include/osgText/Text +++ b/include/osgText/Text @@ -23,7 +23,6 @@ namespace osgText { - class OSGTEXT_EXPORT Text : public osgText::TextBase { public: @@ -309,7 +308,6 @@ public: ColorCoords _colorCoords; TexCoords _texcoords; - LineNumbers _lineNumbers; Coords _transformedBackdropCoords[8]; diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 1b08f9910..2272536bf 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -254,8 +254,6 @@ void Text::computeGlyphRepresentation() bool horizontal = _layout!=VERTICAL; bool kerning = true; - unsigned int lineNumber = 0; - float hr = _characterHeight; float wr = hr/getCharacterAspectRatio(); @@ -445,7 +443,6 @@ void Text::computeGlyphRepresentation() GlyphQuads& glyphquad = _textureGlyphQuadMap[glyph->getTexture()]; glyphquad._glyphs.push_back(glyph); - glyphquad._lineNumbers.push_back(lineNumber); glyphquad.addCoord(upLeft); glyphquad.addCoord(lowLeft); @@ -521,9 +518,6 @@ void Text::computeGlyphRepresentation() } break; } - - ++lineNumber; - } for(TextureGlyphQuadMap::iterator titr=_textureGlyphQuadMap.begin();