From da515105975f2df3d1fc2c5897e6da85771d5f13 Mon Sep 17 00:00:00 2001 From: Ted Nyman Date: Wed, 6 Mar 2013 15:28:55 -0800 Subject: [PATCH] Nix this generated check for now --- lib/linguist/generated.rb | 15 +-------------- test/test_blob.rb | 4 ---- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/lib/linguist/generated.rb b/lib/linguist/generated.rb index e3fff316..5cecc640 100644 --- a/lib/linguist/generated.rb +++ b/lib/linguist/generated.rb @@ -56,8 +56,7 @@ module Linguist compiled_coffeescript? || xcode_project_file? || generated_net_docfile? || - generated_parser? || - compiled_cython_file? + generated_parser? end # Internal: Is the blob an XCode project file? @@ -159,17 +158,5 @@ module Linguist false end - - # Internal: Is this a compiled C/C++ file from Cython? - # - # Cython-compiled C/C++ files typically contain: - # /* Generated by Cython x.x.x on ... */ - # on the first line. - # - # Return true or false - def compiled_cython_file? - return false unless ['.c', '.cpp'].include? extname - return lines[0].include?("Generated by Cython") - end end end diff --git a/test/test_blob.rb b/test/test_blob.rb index 06c5f4a1..85e83cbe 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -189,10 +189,6 @@ class TestBlob < Test::Unit::TestCase assert blob("JavaScript/intro.js").generated? assert blob("JavaScript/classes.js").generated? - - # Cython-generated C/C++ - assert blob("C/sgd_fast.c").generated? - assert blob("C++/wrapper_inner.cpp").generated? end def test_vendored