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