MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / removeItem

Method removeItem

modules/storage/storage.go:133–141  ·  view source on GitHub ↗
(i items.Item)

Source from the content-addressed store, hash-verified

131}
132
133func (s *StorageData) removeItem(i items.Item) bool {
134 for j := len(s.Items) - 1; j >= 0; j-- {
135 if s.Items[j].Equals(i) {
136 s.Items = append(s.Items[:j], s.Items[j+1:]...)
137 return true
138 }
139 }
140 return false
141}
142
143// StorageModule owns all storage state.
144type StorageModule struct {

Callers 6

RemoveStorageItemMethod · 0.80
storageCommandMethod · 0.80
resetFunction · 0.80
resetVolumeControlsFunction · 0.80
saveMapSettingsFunction · 0.80
_cacheDeleteFunction · 0.80

Calls 1

EqualsMethod · 0.80

Tested by

no test coverage detected