PageRenderTime 24ms CodeModel.GetById 22ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/bsh/commands/unset.bsh

#
Unknown | 16 lines | 13 code | 3 blank | 0 comment | 0 complexity | 64de5b83bf1a637a9b861bdb16b71238 MD5 | raw file
 1/**
 2	"Undefine" the variable specifed by 'name' (So that it tests == void).
 3	<p>
 4	<em>Note: there will be a better way to do this in the future.  This is 
 5	currently equivalent to doing namespace.setVariable(name, null);</em>
 6*/
 7
 8bsh.help.unset = "usage: unset( name )";
 9
10void unset( String name ) 
11{
12	if ( arg == null ) // ???
13		return;
14
15	this.caller.namespace.unsetVariable( name );
16}