Skip to content

Commit ada8215

Browse files
committed
Removal of comments and fix whitespace
1 parent 721f980 commit ada8215

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

htslib/hts.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -799,15 +799,6 @@ typedef const char *(*hts_id2name_f)(void*, int);
799799

800800
const char *hts_parse_reg(const char *str, int *beg, int *end);
801801

802-
//typedef struct {
803-
// const char *chr_beg, *chr_end;
804-
// int tid;
805-
// int start, end; // half open, zero based
806-
//} hts_parsed_region;
807-
//const char *hts_parse_region_(const char *str, hts_parsed_region *reg,
808-
// hts_name2id_f getid, void *hdr, int flags);
809-
810-
811802
/// Parse a "CHR:START-END"-style region string
812803
/** @param str String to be parsed
813804
@param tid Set on return (if not NULL) to be reference index (-1 if invalid)

test/test-parse-reg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
Usage: test-parse-reg [-c] file.bam region
2828
test-parse-reg [-c] -m file.bam region,region...
2929
test-parse-reg -t
30-
30+
3131
-c is chr:pos is a single base coordinate, ie chr:pos-pos,
3232
otherwise it is chr:pos-<end>
3333
-m is multi-region list.
@@ -54,7 +54,7 @@ void reg_expected(bam_hdr_t *hdr, const char *reg, int flags,
5454
int64_t beg_out = -1, end_out = -1;
5555

5656
reg_out = sam_parse_region(hdr, reg, &tid_out, &beg_out, &end_out, flags);
57-
57+
5858
if ((reg_out != NULL) != (reg_exp != NULL) ||
5959
(reg_out && reg_exp && strcmp(reg_out, reg_exp) != 0) ||
6060
(reg_exp && tid_out != tid_exp) ||

0 commit comments

Comments
 (0)