diff --git a/src/FrameSemantics.cc b/src/FrameSemantics.cc index 6081aac97..be22a114b 100644 --- a/src/FrameSemantics.cc +++ b/src/FrameSemantics.cc @@ -313,7 +313,6 @@ Errors buildFrameAttachedToGraph( const std::string scopeContextName = "__model__"; - auto rootId = ignition::math::graph::kNullId; if (_isRoot) { // The __root__ vertex identifies the scope that contains a root level @@ -326,7 +325,6 @@ Errors buildFrameAttachedToGraph( // more complexity to the validateFrameAttachedToGraph code. _out = _out.AddScopeVertex( "", "__root__", scopeContextName, sdf::FrameType::STATIC_MODEL); - rootId = _out.ScopeVertexId(); } const auto modelId = _out.AddVertex(_model->Name(), frameType).Id(); diff --git a/src/World.cc b/src/World.cc index c19058cef..884413c1e 100644 --- a/src/World.cc +++ b/src/World.cc @@ -216,7 +216,7 @@ Errors World::Load(sdf::ElementPtr _sdf, const ParserConfig &_config) for (const auto &ifaceModelPair : this->dataPtr->interfaceModels) { - frameNames.insert(ifaceModelPair.second->Name()).second; + frameNames.insert(ifaceModelPair.second->Name()); } // Load all the physics.