Not going back

This commit is contained in:
Brandon Keepers
2014-11-28 08:14:30 -06:00
parent e42ccf0d82
commit fbc0947420

View File

@@ -1,7 +1,6 @@
module Linguist
# A collection of simple heuristics that can be used to better analyze languages.
class Heuristics
ACTIVE = true
# Public: Use heuristics to detect language of the blob.
#
@@ -29,7 +28,6 @@ module Linguist
#
# Returns an array of Languages or []
def self.find_by_heuristics(data, languages)
if active?
result = []
if languages.all? { |l| ["Perl", "Prolog"].include?(l) }
@@ -61,7 +59,6 @@ module Linguist
end
return result
end
end
# .h extensions are ambiguous between C, C++, and Objective-C.
# We want to shortcut look for Objective-C _and_ now C++ too!