Skip to content

Commit

Permalink
symb: Remove unused overload of symbCalcArrayElements()
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl committed Mar 15, 2014
1 parent 67680f5 commit 673d2ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
17 changes: 0 additions & 17 deletions src/compiler/symb-var.bas
Original file line number Diff line number Diff line change
Expand Up @@ -601,23 +601,6 @@ function symbCalcArrayElements _
function = e
end function

function symbCalcArrayElements _
( _
byval dimensions as integer, _
dTB() as FBARRAYDIM _
) as longint

dim as longint e = any, d = any

e = 1
for i as integer = 0 to dimensions-1
d = (dTB(i).upper - dTB(i).lower) + 1
e = e * d
next

function = e
end function

function symbCheckArraySize _
( _
byval dimensions as integer, _
Expand Down
8 changes: 1 addition & 7 deletions src/compiler/symb.bi
Original file line number Diff line number Diff line change
Expand Up @@ -1440,18 +1440,12 @@ declare function symbAllocWstrConst _
byval lgt as integer _
) as FBSYMBOL ptr

declare function symbCalcArrayElements overload _
declare function symbCalcArrayElements _
( _
byval s as FBSYMBOL ptr, _
byval n as FBVARDIM ptr = NULL _
) as longint

declare function symbCalcArrayElements _
( _
byval dimensions as integer, _
dTB() as FBARRAYDIM _
) as longint

declare function symbCalcArrayDiff _
( _
byval dimensions as integer, _
Expand Down

0 comments on commit 673d2ad

Please sign in to comment.