• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Does jasshelper delete useless functions?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,337
Hi,

Suppose I've got the following library. Will jasshelper delete the function / not put it into the map script if it does nothing?

JASS:
library Test

globals
  private constant boolean STATE = false
endglobals

function foo takes nothing returns nothing
  if STATE then
    ...
  endif
endfunction

endlibrary

If it does, how can I fix the library above so it only adds the function foo the the map script if STATE = true?
 
Status
Not open for further replies.
Top