Skip to content

Commit 5724424

Browse files
giacomofiorinjhenin
authored andcommitted
Remove unused class member
1 parent 733f0b5 commit 5724424

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

namd/src/colvarproxy_namd.C

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ colvarproxy_namd::colvarproxy_namd(GlobalMasterColvars *gm)
134134
// save to Node for Tcl script access
135135
Node::Object()->colvars = colvars;
136136

137-
#ifdef NAMD_TCL
138-
have_scripts = true;
139-
#else
140-
have_scripts = false;
141-
#endif
142-
143137
if (simparams->firstTimestep != 0) {
144138
colvars->set_initial_step(static_cast<cvm::step_number>(simparams->firstTimestep));
145139
}

src/colvarproxy.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ int colvarproxy_smp::smp_unlock()
419419
colvarproxy_script::colvarproxy_script()
420420
{
421421
script = NULL;
422-
have_scripts = false;
423422
}
424423

425424

src/colvarproxy.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,6 @@ class colvarproxy_script {
531531
/// (does not need to be allocated in a new interface)
532532
colvarscript *script;
533533

534-
/// Do we have a scripting interface?
535-
bool have_scripts;
536-
537534
/// Run a user-defined colvar forces script
538535
virtual int run_force_callback();
539536

vmd/src/colvarproxy_vmd.C

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,9 @@ colvarproxy_vmd::colvarproxy_vmd(Tcl_Interp *interp, VMDApp *v, int molid)
8585
// both fields are taken from data structures already available
8686
updated_masses_ = updated_charges_ = true;
8787

88-
// Do we have scripts?
89-
// For now colvars depend on Tcl, but this may not always be the case
90-
// in the future
9188
#if defined(VMDTCL)
92-
have_scripts = true;
9389
// Need to set this before constructing colvarmodule, which creates colvarscript object
9490
set_tcl_interp(interp);
95-
#else
96-
have_scripts = false;
9791
#endif
9892

9993
colvars = new colvarmodule(this);

0 commit comments

Comments
 (0)