diff --git a/lib/linguist/lazy_blob.rb b/lib/linguist/lazy_blob.rb index 807312f9..9db67c76 100644 --- a/lib/linguist/lazy_blob.rb +++ b/lib/linguist/lazy_blob.rb @@ -37,14 +37,6 @@ module Linguist end end - def generated? - if attr = git_attributes['linguist-generated'] - return boolean_attribute(attr) - else - return super - end - end - def language return @language if defined?(@language) diff --git a/test/test_repository.rb b/test/test_repository.rb index 9cd54598..8e10e9b6 100644 --- a/test/test_repository.rb +++ b/test/test_repository.rb @@ -68,16 +68,6 @@ class TestRepository < Test::Unit::TestCase assert !repo.breakdown_by_file["Ruby"].empty? end - def test_linguist_override_generated? - attr_commit = '351c1cc8fd57340839bdb400d7812332af80e9bd' - linguist_repo(attr_commit).read_index - - file = Linguist::LazyBlob.new(rugged_repository, attr_commit, 'Rakefile') - - # overridden in .gitattributes - assert file.generated? - end - def test_linguist_override_vendored? attr_commit = '351c1cc8fd57340839bdb400d7812332af80e9bd' repo = linguist_repo(attr_commit).read_index