Skip to content

Commit

Permalink
Hm, that's not quite right..
Browse files Browse the repository at this point in the history
Revert "Add full_data to Code128"

This reverts commit 1b3e4e2.
  • Loading branch information
toretore committed Apr 2, 2009
1 parent 1b3e4e2 commit 31446ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions lib/barby/barcode/code_128.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,9 @@ def data
@data
end

def full_data
@full_data
end

#Set the data for this barcode. If the barcode changes
#character set, an extra will be created.
def data=(data)
@full_data = data
data, *extra = data.split(/([#{CODEA+CODEB+CODEC}])/n)
@data = data
self.extra = extra.join unless extra.empty?
Expand Down
4 changes: 0 additions & 4 deletions spec/code_128_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@
@code = Code128A.new(@data)
end

it "should retain full_data including data converted to extras" do
@code.full_data.should == @data
end

it "should have a Code B extra" do
@code.extra.should be_an_instance_of(Code128B)
end
Expand Down

0 comments on commit 31446ca

Please sign in to comment.