Skip to content

Commit 531b014

Browse files
authored
Merge pull request #288 from ilkerg/master
Remove some unused variables
2 parents 92369b0 + 213603c commit 531b014

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

bwt_gen.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,6 @@ static void BWTIncBuildRelativeRank(bgint_t* __restrict sortedRank, bgint_t* __r
876876
bgint_t i, c;
877877
bgint_t s, r;
878878
bgint_t lastRank, lastIndex;
879-
bgint_t oldInverseSa0RelativeRank = 0;
880879
bgint_t freq;
881880

882881
lastIndex = numItem;
@@ -887,7 +886,6 @@ static void BWTIncBuildRelativeRank(bgint_t* __restrict sortedRank, bgint_t* __r
887886
s = seq[numItem];
888887
relativeRank[s] = numItem;
889888
if (lastRank == oldInverseSa0) {
890-
oldInverseSa0RelativeRank = numItem;
891889
oldInverseSa0++; // so that this segment of code is not run again
892890
lastRank++; // so that oldInverseSa0 become a sorted group with 1 item
893891
}
@@ -920,7 +918,6 @@ static void BWTIncBuildRelativeRank(bgint_t* __restrict sortedRank, bgint_t* __r
920918
lastRank = r;
921919
relativeRank[s] = i;
922920
if (r == oldInverseSa0) {
923-
oldInverseSa0RelativeRank = i;
924921
oldInverseSa0++; // so that this segment of code is not run again
925922
lastRank++; // so that oldInverseSa0 become a sorted group with 1 item
926923
}
@@ -950,15 +947,12 @@ static void BWTIncBuildBwt(unsigned int* insertBwt, const bgint_t *relativeRank,
950947
static void BWTIncMergeBwt(const bgint_t *sortedRank, const unsigned int* oldBwt, const unsigned int *insertBwt,
951948
unsigned int* __restrict mergedBwt, const bgint_t numOldBwt, const bgint_t numInsertBwt)
952949
{
953-
unsigned int bitsInWordMinusBitPerChar;
954950
bgint_t leftShift, rightShift;
955951
bgint_t o;
956952
bgint_t oIndex, iIndex, mIndex;
957953
bgint_t mWord, mChar, oWord, oChar;
958954
bgint_t numInsert;
959955

960-
bitsInWordMinusBitPerChar = BITS_IN_WORD - BIT_PER_CHAR;
961-
962956
oIndex = 0;
963957
iIndex = 0;
964958
mIndex = 0;

0 commit comments

Comments
 (0)