summaryrefslogtreecommitdiff
path: root/tikzit/src/common/TikzGraphAssembler.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/common/TikzGraphAssembler.m')
-rw-r--r--tikzit/src/common/TikzGraphAssembler.m11
1 files changed, 0 insertions, 11 deletions
diff --git a/tikzit/src/common/TikzGraphAssembler.m b/tikzit/src/common/TikzGraphAssembler.m
index 75fca1c..b2c372a 100644
--- a/tikzit/src/common/TikzGraphAssembler.m
+++ b/tikzit/src/common/TikzGraphAssembler.m
@@ -167,17 +167,6 @@
size_t token_offset = yylloc->first_column - 1;
size_t token_len = ((last_line_start - first_line_start) + yylloc->last_column) - token_offset;
- // damn you, tabs!
- // we need to convert "column offsets" into "character/byte offsets"
- for (int i = 0; i < MIN(token_offset + token_len,context_len); ++i) {
- if (*(first_line_start + i) == '\t') {
- if (i < token_offset)
- token_offset -= 7;
- else
- token_len -= 7;
- }
- }
-
if (token_offset + token_len > context_len) {
// error position state is corrupted
NSLog(@"Got bad error state for error \"%s\": start(%i,%i), end(%i,%i)\n context_len = %d; token_offset = %d; token_len = %d",