X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FText%2FTradition%2FParser%2FTabular.pm;h=199490b1dde2cc57e08d9485810c73703ec96818;hb=e309421ae7b04ee2dcb71cdae2f206ffc6b6c384;hp=16e2863608963edae5d5c5742096acc8a32162d1;hpb=c9bf3dbfafd1dab2405e075f9b16287a58047558;p=scpubgit%2Fstemmatology.git diff --git a/lib/Text/Tradition/Parser/Tabular.pm b/lib/Text/Tradition/Parser/Tabular.pm index 16e2863..199490b 100644 --- a/lib/Text/Tradition/Parser/Tabular.pm +++ b/lib/Text/Tradition/Parser/Tabular.pm @@ -33,8 +33,6 @@ sub parse { my $csv = Text::CSV_XS->new( { binary => 1, # binary for UTF-8 sep_char => "\t" } ); my @lines = split( "\n", $tab_str ); - # Conveniently, we are basically receiving exactly the sort of alignment table - # we might want to produce later. May as well save it. my $alignment_table; foreach my $l ( @lines ) { my $status = $csv->parse( $l ); @@ -55,7 +53,6 @@ sub parse { # Now for the next rows, make nodes as necessary, assign their ranks, and # add them to the witness paths. - $DB::single = 1; foreach my $idx ( 1 .. $#{$alignment_table} ) { my $row = $alignment_table->[$idx]; my $nodes = make_nodes( $c, $row, $idx ); @@ -100,11 +97,6 @@ sub parse { # Join up the paths. $c->make_witness_paths; - - # Save the alignment table that was so handily provided to us. - # TODO if we support other delimiters, we will have to re-export this - # rather than saving the original string. - $c->_save_csv( $tab_str ); } sub make_nodes {