Comment-out unused code.
This commit is contained in:
@@ -43,7 +43,7 @@ static void _reservePosition(int m1, int m2, uint8_t *pMask, int maxLen);
|
||||
static void _probablyDrawGridLineForXTick(const AQDG_GRAPH *gr, int x, uint8_t tickDrawFlags);
|
||||
static void _probablyDrawMarkForXTick(const AQDG_GRAPH *gr, int x, int y, uint8_t tickDrawFlags, int level);
|
||||
|
||||
static int _getMaxTickLabelWidthForLevel(const AQDG_GRAPH *gr, const AQDG_GRAPH_TICK_LIST *tl, int level);
|
||||
/*static int _getMaxTickLabelWidthForLevel(const AQDG_GRAPH *gr, const AQDG_GRAPH_TICK_LIST *tl, int level);*/
|
||||
static int _calcDistBetweenFirstTwoTicksOfLevel(const AQDG_GRAPH *gr, const AQDG_GRAPH_TICK_LIST *tl, int level);
|
||||
|
||||
|
||||
@@ -143,11 +143,11 @@ void _drawXTicks(AQDG_GRAPH *gr)
|
||||
/* handle each level */
|
||||
for (level=1; level<MAX_TICK_LEVELS+1; level++) {
|
||||
uint8_t tickDrawFlags=0;
|
||||
int maxWidth=0;
|
||||
//int maxWidth=0;
|
||||
int dist;
|
||||
int every=1;
|
||||
|
||||
maxWidth=_getMaxTickLabelWidthForLevel(gr, tl, level);
|
||||
//maxWidth=_getMaxTickLabelWidthForLevel(gr, tl, level);
|
||||
|
||||
/* check medium width for the current level */
|
||||
dist=_calcDistBetweenFirstTwoTicksOfLevel(gr, tl, level);
|
||||
@@ -307,6 +307,7 @@ void _probablyDrawMarkForXTick(const AQDG_GRAPH *gr, int x, int y, uint8_t tickD
|
||||
|
||||
|
||||
|
||||
#if 0
|
||||
int _getMaxTickLabelWidthForLevel(const AQDG_GRAPH *gr, const AQDG_GRAPH_TICK_LIST *tl, int level)
|
||||
{
|
||||
AQDG_GRAPH_TICK *t;
|
||||
@@ -341,6 +342,7 @@ int _getMaxTickLabelWidthForLevel(const AQDG_GRAPH *gr, const AQDG_GRAPH_TICK_LI
|
||||
|
||||
return maxWidth;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user