gfxstream: remove unused Unsupported error variant

This was introduced in a CL that did not use it, so it seems to be
unnecessary (maybe copy-pasted from another error enum).

Fixes a clippy warning:

  error: variant is never constructed: `Unsupported`

BUG=None
TEST=bin/clippy

Change-Id: Iaccf6c86a5ef9e36efad1053776b6ee2db53a2cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2316379
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Lingfeng Yang <lfy@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2020-07-23 10:23:37 -07:00 committed by Commit Bot
parent d6ac1ab3a7
commit 0c40f609d2

View file

@ -33,8 +33,6 @@ use crate::virtio::resource_bridge::ResourceResponse;
pub enum GfxStreamError {
/// Invalid size used for a command.
InvalidCommandSize(usize),
/// Unsupported behavior
Unsupported,
}
impl Display for GfxStreamError {
@ -47,7 +45,6 @@ impl Display for GfxStreamError {
"gfxstream: invalid command size: {} (expected u32 multiple)",
size
),
Unsupported => write!(f, "gfxstream: unsupported operation"),
}
}
}