Nix this generated check for now

This commit is contained in:
Ted Nyman
2013-03-06 15:28:55 -08:00
parent 47389cc827
commit da51510597
2 changed files with 1 additions and 18 deletions

View File

@@ -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

View File

@@ -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