Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove old functions
  • Loading branch information
gavofyork committed Feb 18, 2020
commit 8de91c430976cdc230d93f849b06d49eeb62b96d
17 changes: 1 addition & 16 deletions frame/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,7 @@ impl<T: Trait> Module<T> {
Self::deposit_event_indexed(&[], event.into());
}

/// Increment the reference counter on an account. `_context` is a RefContext value identifying
/// the context of the reference.
/// Increment the reference counter on an account.
pub fn inc_ref(who: &T::AccountId) {
Account::<T>::mutate(who, |a| a.refcount = a.refcount.saturating_add(1));
}
Expand All @@ -690,20 +689,6 @@ impl<T: Trait> Module<T> {
Account::<T>::mutate(who, |a| a.refcount = a.refcount.saturating_sub(1));
}

/// Note that a particular storage key is referring to a particular account. Returns the status
/// of this storage key immediately *before* this call (after this call it will be `Referenced`,
/// of course).
pub fn note_referenced(_who: &T::AccountId, _storage_key: &[u8]) -> RefStatus {
unimplemented!()
}

/// Note that a particular storage key is not referring to a particular account. Returns the
/// status of this storage key immediately *before* this call (after this call it will be
/// `Unreferenced`, of course).
pub fn note_unreferenced(_who: &T::AccountId, _storage_key: &[u8]) -> RefStatus {
unimplemented!()
}

/// The number of outstanding references for the account `who`.
pub fn refs(who: &T::AccountId) -> RefCount {
Account::<T>::get(who).refcount
Expand Down