From 0d7cc258f98222e40dd75428b83c9d9422788a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?fn=20=E2=8C=83=20=E2=8C=A5?= <70830482+FnControlOption@users.noreply.github.com> Date: Wed, 29 Sep 2021 14:49:22 -0700 Subject: [PATCH] cxxstdlib: delete unused CompatibilityError class --- Library/Homebrew/cxxstdlib.rb | 12 ------------ 1 file changed, 12 deletions(-) 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)