summaryrefslogtreecommitdiff
path: root/vcl/source/fontsubset/cff.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-08 08:39:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-08 08:39:36 +0200
commit213bc71f84c8f8494f5b5009b730b5a7af2c7cee (patch)
tree4e26514b812625615d45d317a3987d9b66ba4ac7 /vcl/source/fontsubset/cff.cxx
parent35a7310e7fc16f609f895c043ceb8e99a251b3ee (diff)
Clean up function declarations and some unused functions
Change-Id: I382289c7188dfdc9839ff9e6362b6e039ffc5f9e
Diffstat (limited to 'vcl/source/fontsubset/cff.cxx')
-rw-r--r--vcl/source/fontsubset/cff.cxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index 854784ec6fe6..a1d7dbd1d541 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -332,7 +332,6 @@ public:
// used by charstring converter
void setCharStringType( int);
- void fakeLocalSubrCount( int nLocalSubrs ) { maCffLocal[0].mnLocalSubrCount=nLocalSubrs;}
protected:
int convert2Type1Ops( CffLocal*, const U8* pType2Ops, int nType2Len, U8* pType1Ops);
private:
@@ -372,7 +371,6 @@ private:
const char* getGlyphName( int nGlyphIndex);
void read2push( void);
- void pop2write( void);
void writeType1Val( ValType);
void writeTypeOp( int nTypeOp);
void writeTypeEsc( int nTypeOp);
@@ -385,19 +383,13 @@ public: // TODO: is public really needed?
// TODO: add more checks
void push( ValType nVal) { mnValStack[ mnStackIdx++] = nVal;}
ValType popVal( void) { return ((mnStackIdx>0) ? mnValStack[ --mnStackIdx] : 0);}
- ValType peekVal( void) const { return ((mnStackIdx>0) ? mnValStack[ mnStackIdx-1] : 0);}
ValType getVal( int nIndex) const { return mnValStack[ nIndex];}
int popInt( void);
- int peekInt( void) const;
- int getInt( int nIndex) const;
int size( void) const { return mnStackIdx;}
- bool empty( void) const { return !mnStackIdx;}
void clear( void) { mnStackIdx = 0;}
// accessing the charstring hints
void addHints( bool bVerticalHints);
- int getHorzHintCount( void) const { return (mnHorzHintSize/2);}
- int getVertHintCount( void) const { return (mnHintSize-mnHorzHintSize)/2;}
// accessing other charstring specifics
bool hasCharWidth( void) const { return (maCharWidth > 0);}
@@ -445,22 +437,6 @@ inline int CffSubsetterContext::popInt( void)
return nInt;
}
-inline int CffSubsetterContext::peekInt( void) const
-{
- const ValType aVal = peekVal();
- const int nInt = static_cast<int>(aVal);
- assert( nInt == aVal);
- return nInt;
-}
-
-inline int CffSubsetterContext::getInt( int nIndex) const
-{
- const ValType aVal = getVal( nIndex);
- const int nInt = static_cast<int>(aVal);
- assert( nInt == aVal);
- return nInt;
-}
-
inline void CffSubsetterContext::updateWidth( bool bUseFirstVal)
{
#if 1 // TODO: is this still needed?
@@ -723,12 +699,6 @@ void CffSubsetterContext::writeType1Val( ValType aVal)
mpWritePtr = pOut;
}
-inline void CffSubsetterContext::pop2write( void)
-{
- const ValType aVal = popVal();
- writeType1Val( aVal);
-}
-
inline void CffSubsetterContext::writeTypeOp( int nTypeOp)
{
*(mpWritePtr++) = static_cast<U8>(nTypeOp);