diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb index b595848a2a..ed43d0c387 100644 --- a/Library/Homebrew/cxxstdlib.rb +++ b/Library/Homebrew/cxxstdlib.rb @@ -7,18 +7,6 @@ require "compilers" class CxxStdlib extend T::Sig - include CompilerConstants - - # Error for when a formula's dependency was built with a different C++ standard library. - class CompatibilityError < StandardError - def initialize(formula, dep, stdlib) - super <<~EOS - #{formula.full_name} dependency #{dep.name} was built with a different C++ standard - library (#{stdlib.type_string} from #{stdlib.compiler}). This may cause problems at runtime. - EOS - end - end - def self.create(type, compiler) raise ArgumentError, "Invalid C++ stdlib type: #{type}" if type && [:libstdcxx, :libcxx].exclude?(type)