mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 09:16:20 +00:00
Remove all unused variables (style warning).
This commit is contained in:
parent
6ef62f6502
commit
af2575da5b
@ -35,8 +35,6 @@ GLuint MakeTexture(GLubyte* data , int width, int height) {
|
||||
|
||||
void Satellite_initialize(void) {
|
||||
|
||||
FILE fp;
|
||||
|
||||
capsuleTextureID = MakeTexture(Capsule_texture, CAPSULE_TEXTURE_WIDTH, CAPSULE_TEXTURE_HEIGHT);
|
||||
nozzleTextureID = MakeTexture(Nozzle_texture, NOZZLE_TEXTURE_WIDTH, NOZZLE_TEXTURE_HEIGHT);
|
||||
|
||||
|
@ -28,8 +28,6 @@ void Satellite::get_force_of_gravity ( double* gForceV) {
|
||||
void Satellite::get_Force_and_Torque() {
|
||||
|
||||
double gforcev[3];
|
||||
double thruster_force[3];
|
||||
double thruster_torque[3];
|
||||
|
||||
// Zero force.
|
||||
for (int ii=0; ii<3; ii++) { force[ii] = 0.0; }
|
||||
|
@ -237,7 +237,6 @@ bool FieldVisitor::VisitFieldDecl( clang::FieldDecl *field ) {
|
||||
if ( !qt.isCanonical() ) {
|
||||
fdes->setNonCanonicalTypeName(qt.getAsString()) ;
|
||||
clang::QualType ct = qt.getCanonicalType() ;
|
||||
std::string tst_string = ct.getAsString() ;
|
||||
if ( debug_level >= 3 ) {
|
||||
std::cout << "\033[33mFieldVisitor VisitFieldDecl: Processing canonical type\033[00m" << std::endl ;
|
||||
ct.dump() ;
|
||||
@ -271,8 +270,6 @@ bool FieldVisitor::ProcessTemplate(std::string in_name , clang::CXXRecordDecl *
|
||||
return false ;
|
||||
}
|
||||
|
||||
size_t pos ;
|
||||
|
||||
// Check to see if we've processed this template before
|
||||
// If not we need to create attributes for this template
|
||||
if ( processed_templates.find(in_name) == processed_templates.end() ) {
|
||||
|
@ -383,7 +383,6 @@ void PrintAttributes::printIOMakefile() {
|
||||
std::ofstream io_link_list ;
|
||||
std::ofstream ICG_processed ;
|
||||
std::ofstream ext_lib ;
|
||||
unsigned int ii ;
|
||||
|
||||
// Don't create a makefile if we didn't process any files.
|
||||
if ( out_of_date_io_files.empty() ) {
|
||||
|
@ -42,7 +42,6 @@ GPViewCurveNode::GPViewCurveNode( Widget Toplevel,
|
||||
std::string curve_symbol_style;
|
||||
std::string curve_symbol_size;
|
||||
std::string tmp_string;
|
||||
std::stringstream tmp_stream;
|
||||
|
||||
toplevel = Toplevel;
|
||||
dpc_curve = Curve;
|
||||
|
@ -95,7 +95,6 @@ void GPViewPlotNode::finalize() {
|
||||
std::string plot_data_src_label;
|
||||
std::string plot_title;
|
||||
std::string plot_x_label;
|
||||
std::string plot_x_units;
|
||||
std::string plot_x_scale;
|
||||
std::string plot_x_min_rng;
|
||||
std::string plot_x_max_rng;
|
||||
|
@ -60,7 +60,6 @@ int Trick::DebugPause::debug_signal() {
|
||||
|
||||
int Trick::DebugPause::debug_pause_on() {
|
||||
|
||||
std::map<std::string , Trick::JobData *>::iterator it ;
|
||||
std::stringstream sem_name_stream ;
|
||||
|
||||
if ( debug_pause_flag == true ) {
|
||||
|
@ -38,7 +38,6 @@ int Trick::Executive::loop_multi_thread() {
|
||||
|
||||
JobData * depend_job ;
|
||||
unsigned int ii ;
|
||||
std::stringstream error_message ;
|
||||
Trick::ScheduledJobQueue * main_sched_queue ;
|
||||
int ret = 0 ;
|
||||
|
||||
|
@ -79,8 +79,6 @@ int Trick::IPPython::init() {
|
||||
/** @par Detailed Design: */
|
||||
|
||||
FILE *input_fp ;
|
||||
std::string shortcut ;
|
||||
std::string verify_command ;
|
||||
int ret ;
|
||||
std::string error_message ;
|
||||
pthread_mutexattr_t m_attr ;
|
||||
|
@ -21,14 +21,12 @@ int Trick::MemoryManager::add_attr_info( const std::string & user_type_string ,
|
||||
std::string sub_attr_init_name ;
|
||||
std::string size_func_name ;
|
||||
size_t spos ;
|
||||
std::string::iterator pos ;
|
||||
ATTRIBUTES* sub_attr = NULL ;
|
||||
ENUM_ATTR* enum_attr = NULL ;
|
||||
void (*init_sub_attr)(void) = NULL ;
|
||||
size_t (*size_func)(void) = NULL ;
|
||||
unsigned int ii ;
|
||||
std::set<std::string>::iterator it ;
|
||||
std::map<std::string,std::string>::iterator mit;
|
||||
|
||||
/** @par Design Details: */
|
||||
|
||||
|
@ -74,7 +74,6 @@ std::string map_trick_units_to_udunits( std::string orig_units ) {
|
||||
std::vector<std::string>::iterator it ;
|
||||
tokenize_units(orig_units, tokens, "*/^()") ;
|
||||
for( it = tokens.begin() ; it != tokens.end() ; it++ ) {
|
||||
std::string power ;
|
||||
char last_char = *((*it).rbegin()) ;
|
||||
// tokens can end in powers of 2 or 3 in the old system.
|
||||
// save the power if it is the last character
|
||||
|
@ -34,9 +34,7 @@ void dump_data ( DataFiles* df,
|
||||
int main( int narg, char** args ) {
|
||||
|
||||
DataFiles df ;
|
||||
DataFiles headers ;
|
||||
TCDevice connection ;
|
||||
int isAsciiData ;
|
||||
int ret ;
|
||||
char* file_name ;
|
||||
char* msg ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user