Remove the unused CommandBufferBuild trait (#813)

This commit is contained in:
tomaka 2017-09-07 19:33:12 +02:00 committed by GitHub
parent df9d2f60db
commit e0d700a044
2 changed files with 0 additions and 12 deletions

View File

@ -92,7 +92,6 @@ pub use self::auto::UpdateBufferError;
pub use self::state_cacher::StateCacher;
pub use self::state_cacher::StateCacherOutcome;
pub use self::traits::CommandBuffer;
pub use self::traits::CommandBufferBuild;
pub use self::traits::CommandBufferExecError;
pub use self::traits::CommandBufferExecFuture;

View File

@ -145,17 +145,6 @@ pub unsafe trait CommandBuffer: DeviceOwned {
// FIXME: lots of other methods
}
/// Turns a command buffer builder into a real command buffer.
pub unsafe trait CommandBufferBuild {
/// The type of the built command buffer.
type Out;
/// Error that can be returned when building.
type Err;
/// Builds the command buffer.
fn build(self) -> Result<Self::Out, Self::Err>;
}
unsafe impl<T> CommandBuffer for T
where T: SafeDeref,
T::Target: CommandBuffer