Skip to content

Commit

Permalink
remove unnecessary includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sawwave committed Dec 9, 2024
1 parent b9fbb6d commit 70704a3
Show file tree
Hide file tree
Showing 30 changed files with 1 addition and 79 deletions.
5 changes: 0 additions & 5 deletions src/AwFmCreate.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#include "AwFmCreate.h"

#include <stdlib.h>
#include <string.h>

#include "AwFmFile.h"
#include "AwFmIndex.h"
#include "AwFmIndexStruct.h"
#include "AwFmLetter.h"
#include "AwFmSearch.h"
#include "AwFmSimdConfig.h"
#include "AwFmSuffixArray.h"
#include "FastaVector.h"
#include "divsufsort64.h"
Expand Down
2 changes: 0 additions & 2 deletions src/AwFmFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
#define _XOPEN_SOURCE 500

#include "AwFmFile.h"

#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "AwFmIndex.h"
#include "AwFmIndexStruct.h"
#include "AwFmSuffixArray.h"
Expand Down
1 change: 0 additions & 1 deletion src/AwFmFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stdbool.h>
#include <stdint.h>

#include "AwFmIndexStruct.h"

/*
Expand Down
1 change: 0 additions & 1 deletion src/AwFmIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

#include "FastaVector.h"

#ifdef __cplusplus
Expand Down
2 changes: 0 additions & 2 deletions src/AwFmIndexStruct.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include "AwFmIndexStruct.h"

#include <stdlib.h>
#include <string.h>

#include "AwFmIndex.h"
#include "FastaVector.h"

Expand Down
1 change: 0 additions & 1 deletion src/AwFmIndexStruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>

#include "AwFmIndex.h"

#define AW_FM_CURRENT_VERSION_NUMBER 8
Expand Down
2 changes: 0 additions & 2 deletions src/AwFmKmerTable.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "AwFmKmerTable.h"

#include "AwFmLetter.h"
#include "AwFmSearch.h"

bool awFmQueryCanUseKmerTable(const struct AwFmIndex *_RESTRICT_ const index,
const char *_RESTRICT_ const kmer,
Expand Down
1 change: 0 additions & 1 deletion src/AwFmKmerTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define AW_FM_KMER_TABLE_H

#include <stdint.h>

#include "AwFmIndexStruct.h"

/*
Expand Down
4 changes: 0 additions & 4 deletions src/AwFmLetter.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "AwFmLetter.h"
#include "AwFmIndexStruct.h"

#include <ctype.h>
#include <stdlib.h>
#include <time.h>

uint8_t awFmAsciiNucleotideToLetterIndex(const uint8_t asciiLetter) {
uint8_t toLowerCase = asciiLetter | 0x20;
Expand Down
1 change: 0 additions & 1 deletion src/AwFmLetter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define AW_FM_LETTER_H

#include <stdint.h>

#include "AwFmIndexStruct.h"

/*
Expand Down
4 changes: 1 addition & 3 deletions src/AwFmOccurrence.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "AwFmOccurrence.h"

#include <stdbool.h>

#include "AwFmOccurrence.h"
#include "AwFmIndex.h"
#include "AwFmLetter.h"

Expand Down
1 change: 0 additions & 1 deletion src/AwFmOccurrence.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define AW_FM_OCCURANCE_H

#include <stdint.h>

#include "AwFmIndexStruct.h"
#include "AwFmSimdConfig.h"

Expand Down
4 changes: 0 additions & 4 deletions src/AwFmParallelSearch.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#include "AwFmParallelSearch.h"

#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

#include "AwFmFile.h"
#include "AwFmIndex.h"
#include "AwFmIndexStruct.h"
#include "AwFmKmerTable.h"
Expand Down
1 change: 0 additions & 1 deletion src/AwFmSearch.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "AwFmSearch.h"

#include "AwFmLetter.h"
#include "AwFmOccurrence.h"
#include "AwFmSuffixArray.h"
Expand Down
1 change: 0 additions & 1 deletion src/AwFmSearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stdbool.h>
#include <stdint.h>

#include "AwFmFile.h"
#include "AwFmIndex.h"
#include "AwFmIndexStruct.h"
Expand Down
1 change: 0 additions & 1 deletion src/AwFmSimdConfig.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "AwFmSimdConfig.h"

#include "AwFmIndex.h"

// function implementations are defined based on if they're ARM_NEON (aarch64)
Expand Down
1 change: 0 additions & 1 deletion src/AwFmSimdConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define AWFM_SIMD_CONFIG_H

#include <stdint.h>

#include "AwFmIndex.h"

/*
Expand Down
1 change: 0 additions & 1 deletion src/AwFmSuffixArray.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <assert.h>
#include <string.h>

#include "AwFmFile.h"

// adding padding bytes prevents buffer overflow problems recalling values from
Expand Down
6 changes: 0 additions & 6 deletions test/backtraceTest/backtraceTest.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#include "../../build/FastaVector.h"
#include "../../build/divsufsort64.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
#include "../../src/AwFmLetter.h"
#include "../../src/AwFmOccurrence.h"
#include "../../src/AwFmParallelSearch.h"
#include "../../src/AwFmSearch.h"
#include "../test.h"
#include <assert.h>
Expand Down
4 changes: 0 additions & 4 deletions test/bwtTest/bwtTest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <assert.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand All @@ -8,10 +7,7 @@
#include <time.h>

#include "../../build/divsufsort64.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
#include "../../src/AwFmLetter.h"
#include "../../src/AwFmOccurrence.h"
#include "../test.h"
Expand Down
2 changes: 0 additions & 2 deletions test/createTests/AwFmCreationTest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <assert.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand All @@ -8,7 +7,6 @@
#include <time.h>

#include "../../build/divsufsort64.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
Expand Down
6 changes: 0 additions & 6 deletions test/fileTests/AwFmFileTests.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@
#include <time.h>

#include "../../build/divsufsort64.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
#include "../../src/AwFmLetter.h"
#include "../../src/AwFmOccurrence.h"
#include "../../src/AwFmParallelSearch.h"
#include "../../src/AwFmSearch.h"
#include "../../src/AwFmSuffixArray.h"
#include "../test.h"

Expand Down
7 changes: 0 additions & 7 deletions test/inMemorySaTest/inMemorySaTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
#include <time.h>

#include "../../build/divsufsort64.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
#include "../../src/AwFmLetter.h"
#include "../../src/AwFmOccurrence.h"
#include "../../src/AwFmParallelSearch.h"
#include "../../src/AwFmSearch.h"
#include "../test.h"

char buffer[2048];
Expand Down
3 changes: 0 additions & 3 deletions test/kmerSeedTableTests/kmerSeedTableTests.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <assert.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand All @@ -8,11 +7,9 @@
#include <time.h>

#include "../../build/divsufsort64.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
#include "../../src/AwFmLetter.h"
#include "../../src/AwFmSearch.h"
#include "../test.h"

Expand Down
1 change: 0 additions & 1 deletion test/letterTest/AwFmLetterTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <string.h>
#include <time.h>

#include "../../src/AwFmIndexStruct.h"
#include "../test.h"

char buffer[2048];
Expand Down
5 changes: 0 additions & 5 deletions test/multiSequenceIndexTest/AwFmMultiSequenceTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
#include <time.h>

#include "../../lib/FastaVector/src/FastaVector.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
#include "../../src/AwFmLetter.h"
#include "../../src/AwFmOccurrence.h"
#include "../../src/AwFmParallelSearch.h"
#include "../../src/AwFmSearch.h"
#include "../../src/AwFmSuffixArray.h"
#include "../test.h"
Expand Down
5 changes: 0 additions & 5 deletions test/occurrenceTests/occurrenceTests.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@
#include <time.h>

#include "../../build/divsufsort64.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
#include "../../src/AwFmLetter.h"
#include "../../src/AwFmOccurrence.h"
#include "../../src/AwFmSearch.h"
#include "../../src/AwFmSimdConfig.h"
#include "../test.h"

Expand Down
5 changes: 0 additions & 5 deletions test/searchTest/searchTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
#include <time.h>

#include "../../build/divsufsort64.h"
#include "../../src/AwFmCreate.h"
#include "../../src/AwFmIndex.h"
#include "../../src/AwFmIndexStruct.h"
#include "../../src/AwFmKmerTable.h"
#include "../../src/AwFmLetter.h"
#include "../../src/AwFmOccurrence.h"
#include "../../src/AwFmSearch.h"
#include "../test.h"

char buffer[2048];
Expand Down
1 change: 0 additions & 1 deletion test/sharedLibTest/awfmiTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char **argv) {
struct AwFmIndex *index;
Expand Down
1 change: 0 additions & 1 deletion test/staticLibTest/awfmiTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char **argv) {

Expand Down

0 comments on commit 70704a3

Please sign in to comment.