Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
addressed review comments
  • Loading branch information
Gautam Dhameja committed Mar 14, 2019
commit aaab62cfb14e626d7cf0d52435bc5085c46bfb5a
5 changes: 1 addition & 4 deletions srml/timestamp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@
//!
//! ## Interface
//!
//! ### Dispatchable functions
//! ### Dispatchable functions ([`Call`])
//!
//! * `set` - Sets the current time.
//!
//! Please refer to the [`Call`] enum and its associated functions for a detailed list of dispatchable functions.
//!
//! ### Public functions
//!
//! * `get` - Gets the current time for the current block. If this function is called prior the setting to timestamp, it will return the timestamp of the previous block.
Expand Down Expand Up @@ -251,7 +249,6 @@ impl<T: Trait> Module<T> {
}
}

/// Extracts the timestamp inherent from inherent data.
fn extract_inherent_data(data: &InherentData) -> Result<InherentType, RuntimeString> {
data.get_data::<InherentType>(&INHERENT_IDENTIFIER)
.map_err(|_| RuntimeString::from("Invalid timestamp inherent data encoding."))?
Expand Down