Skip to content

Commit 4b15e72

Browse files
committed
performance: remove dead code
1 parent d9073c1 commit 4b15e72

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

mt-kahypar/io/hypergraph_io.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -92,30 +92,6 @@ namespace mt_kahypar::io {
9292
const HyperedgeID num_hyperedges;
9393
};
9494

95-
bool isSinglePinHyperedge(char* mapped_file,
96-
size_t pos,
97-
const size_t length,
98-
const bool has_hyperedge_weights) {
99-
ASSERT(!is_line_ending(mapped_file, pos), "Empty line where hyperedge was expected");
100-
ASSERT(mapped_file[pos] != ' ', "Line may not start with space");
101-
++pos;
102-
103-
size_t num_spaces = 0;
104-
for ( ; pos < length; ++pos ) {
105-
if (is_line_ending(mapped_file, pos)) {
106-
break;
107-
// shift the check by -1 so that we can tolerate a space at the end of the line
108-
} else if ( mapped_file[pos - 1] == ' ' ) {
109-
++num_spaces;
110-
}
111-
112-
if ( num_spaces == 2 ) {
113-
break;
114-
}
115-
}
116-
return has_hyperedge_weights ? num_spaces == 1 : num_spaces == 0;
117-
}
118-
11995
struct HyperedgeReadResult {
12096
HyperedgeReadResult() :
12197
num_removed_single_pin_hyperedges(0),

0 commit comments

Comments
 (0)