Remove some unused variables

This commit is contained in:
Mitchell Stokes 2018-08-19 16:55:07 +02:00 committed by rdb
parent 044d84c8fd
commit f663d215d5
6 changed files with 2 additions and 9 deletions

View File

@ -789,8 +789,6 @@ InterfaceMakerPythonNative::
*/ */
void InterfaceMakerPythonNative:: void InterfaceMakerPythonNative::
write_prototypes(ostream &out_code, ostream *out_h) { write_prototypes(ostream &out_code, ostream *out_h) {
Functions::iterator fi;
if (out_h != nullptr) { if (out_h != nullptr) {
*out_h << "#include \"py_panda.h\"\n\n"; *out_h << "#include \"py_panda.h\"\n\n";
} }
@ -917,7 +915,6 @@ write_prototypes_class_external(ostream &out, Object *obj) {
void InterfaceMakerPythonNative:: void InterfaceMakerPythonNative::
write_prototypes_class(ostream &out_code, ostream *out_h, Object *obj) { write_prototypes_class(ostream &out_code, ostream *out_h, Object *obj) {
std::string ClassName = make_safe_name(obj->_itype.get_scoped_name()); std::string ClassName = make_safe_name(obj->_itype.get_scoped_name());
Functions::iterator fi;
out_code << "/**\n"; out_code << "/**\n";
out_code << " * Forward declarations for top-level class " << ClassName << "\n"; out_code << " * Forward declarations for top-level class " << ClassName << "\n";
@ -3322,7 +3319,7 @@ write_prototype_for(ostream &out, InterfaceMaker::Function *func) {
*/ */
void InterfaceMakerPythonNative:: void InterfaceMakerPythonNative::
write_prototype_for_name(ostream &out, InterfaceMaker::Function *func, const std::string &function_namename) { write_prototype_for_name(ostream &out, InterfaceMaker::Function *func, const std::string &function_namename) {
Function::Remaps::const_iterator ri; // Function::Remaps::const_iterator ri;
// for (ri = func->_remaps.begin(); ri != func->_remaps.end(); ++ri) { // for (ri = func->_remaps.begin(); ri != func->_remaps.end(); ++ri) {
// FunctionRemap *remap = (*ri); // FunctionRemap *remap = (*ri);

View File

@ -558,7 +558,7 @@ remove_doubled_verts(bool closed) {
*/ */
void EggPrimitive:: void EggPrimitive::
remove_nonunique_verts() { remove_nonunique_verts() {
Vertices::iterator vi, vj; Vertices::iterator vi;
Vertices new_vertices; Vertices new_vertices;
int num_removed = 0; int num_removed = 0;

View File

@ -2661,7 +2661,6 @@ set_occluder_polygon(EggGroup *egg_group, OccluderNode *pnode) {
} else { } else {
LMatrix4d mat = poly->get_vertex_to_node(); LMatrix4d mat = poly->get_vertex_to_node();
EggPolygon::const_iterator vi;
LPoint3d v0 = (*poly)[0]->get_pos3() * mat; LPoint3d v0 = (*poly)[0]->get_pos3() * mat;
LPoint3d v1 = (*poly)[1]->get_pos3() * mat; LPoint3d v1 = (*poly)[1]->get_pos3() * mat;
LPoint3d v2 = (*poly)[2]->get_pos3() * mat; LPoint3d v2 = (*poly)[2]->get_pos3() * mat;

View File

@ -115,7 +115,6 @@ apply_attribs_to_vertices(const AccumulatedAttribs &attribs, int attrib_types,
Thread *current_thread = Thread::get_current_thread(); Thread *current_thread = Thread::get_current_thread();
OPEN_ITERATE_CURRENT_AND_UPSTREAM(_cycler, current_thread) { OPEN_ITERATE_CURRENT_AND_UPSTREAM(_cycler, current_thread) {
CDStageWriter cdata(_cycler, pipeline_stage, current_thread); CDStageWriter cdata(_cycler, pipeline_stage, current_thread);
GeomList::iterator gi;
PT(GeomList) geoms = cdata->modify_geoms(); PT(GeomList) geoms = cdata->modify_geoms();
// Iterate based on the number of geoms, not using STL iterators. This // Iterate based on the number of geoms, not using STL iterators. This

View File

@ -742,7 +742,6 @@ make_compatible_state(GeomNode *node) {
} }
GeomNode::CDWriter cdata(node->_cycler); GeomNode::CDWriter cdata(node->_cycler);
GeomNode::GeomList::iterator gi;
PT(GeomNode::GeomList) geoms = cdata->modify_geoms(); PT(GeomNode::GeomList) geoms = cdata->modify_geoms();
// For each geom, calculate a canonicalized RenderState, and classify all // For each geom, calculate a canonicalized RenderState, and classify all

View File

@ -1072,7 +1072,6 @@ render_polygon_contours(TextGlyph *glyph, bool face, bool extrude) {
// create more vertices--they don't share the same normals. // create more vertices--they don't share the same normals.
for (ci = _contours.begin(); ci != _contours.end(); ++ci) { for (ci = _contours.begin(); ci != _contours.end(); ++ci) {
const Contour &contour = (*ci); const Contour &contour = (*ci);
Points::const_iterator pi;
for (size_t i = 0; i < contour._points.size(); ++i) { for (size_t i = 0; i < contour._points.size(); ++i) {
const ContourPoint &cp = contour._points[i]; const ContourPoint &cp = contour._points[i];