Skip to content

Commit e144f9e

Browse files
alexskrclaude
andcommitted
Remove dead :unions_with_bind render branch
The non-optional `:unions_with_bind` branch in `Query#to_s` was unreachable: its DSL writer (`union_with_bind_as`) was dropped during an earlier reset-to-upstream + manual reapply, leaving the render branch orphaned with no way to populate `options[:unions_with_bind]`. Confirmed unused across all active downstream lineages (ncbo/goo, ontoportal/goo, and the AgroPortal/LIRMM `ontoportal-lirmm-development` branch) — every consumer calls only `optional_union_with_bind_as`. This is a pure dead-code removal; query output is unchanged. The live `:optional_unions_with_bind` path and the shared `add_union_with_bind` helper it relies on are retained. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 2ac20b2 commit e144f9e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

lib/sparql/client/query.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -843,12 +843,6 @@ def to_s
843843

844844

845845

846-
if options[:unions_with_bind]
847-
buffer.pop # remove } of where
848-
buffer << add_union_with_bind(options[:unions_with_bind])
849-
buffer << '}'
850-
end
851-
852846
if options[:optional_unions_with_bind] && !options[:optional_unions_with_bind].empty?
853847
buffer.pop # remove } of where
854848
buffer << 'OPTIONAL {'

0 commit comments

Comments
 (0)