Skip to content

Commit

Permalink
remove more code
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Mar 10, 2025
1 parent da49d7b commit 12537a8
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 525 deletions.
7 changes: 0 additions & 7 deletions gnovm/pkg/gnolang/alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const (
_allocMapValue = 144
_allocBoundMethodValue = 176
_allocBlock = 464
_allocNativeValue = 48
_allocTypeValue = 16
_allocTypedValue = 40
_allocBigint = 200 // XXX
Expand Down Expand Up @@ -54,7 +53,6 @@ const (
allocBoundMethod = _allocBase + _allocPointer + _allocBoundMethodValue
allocBlock = _allocBase + _allocPointer + _allocBlock
allocBlockItem = _allocTypedValue
allocNative = _allocBase + _allocPointer + _allocNativeValue
allocType = _allocBase + _allocPointer + _allocType
// allocDataByte = 1
// allocPackge = 1
Expand Down Expand Up @@ -159,11 +157,6 @@ func (alloc *Allocator) AllocateBlockItems(items int64) {
alloc.Allocate(allocBlockItem * items)
}

// NOTE: does not allocate for the underlying value.
func (alloc *Allocator) AllocateNative() {
alloc.Allocate(allocNative)
}

/* NOTE: Not used, account for with AllocatePointer.
func (alloc *Allocator) AllocateDataByte() {
alloc.Allocate(allocDataByte)
Expand Down
Loading

0 comments on commit 12537a8

Please sign in to comment.