summaryrefslogtreecommitdiffhomepage
path: root/pkg/cpuid/cpuid_x86.go
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2020-12-15 16:49:39 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-15 16:51:35 -0800
commit97406b20a1551ddc8d1884d11d81b958b829afae (patch)
tree061e93d8472adb1235df88dec2ce2c70ba2de6bf /pkg/cpuid/cpuid_x86.go
parent50c658a9f6df85998a08f51f680302366c2df240 (diff)
Internal change.
PiperOrigin-RevId: 347720083
Diffstat (limited to 'pkg/cpuid/cpuid_x86.go')
-rw-r--r--pkg/cpuid/cpuid_x86.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/pkg/cpuid/cpuid_x86.go b/pkg/cpuid/cpuid_x86.go
index 17a89c00d..392711e8f 100644
--- a/pkg/cpuid/cpuid_x86.go
+++ b/pkg/cpuid/cpuid_x86.go
@@ -681,17 +681,6 @@ func (fs *FeatureSet) Intel() bool {
return fs.VendorID == intelVendorID
}
-// ErrIncompatible is returned by FeatureSet.HostCompatible if fs is not a
-// subset of the host feature set.
-type ErrIncompatible struct {
- message string
-}
-
-// Error implements error.
-func (e ErrIncompatible) Error() string {
- return e.message
-}
-
// CheckHostCompatible returns nil if fs is a subset of the host feature set.
func (fs *FeatureSet) CheckHostCompatible() error {
hfs := HostFeatureSet()