Commit 416ae7e
authored
MONGOID-5931 Remove obsolete driver-version guard and document DeprecatedOptions (#6164)
Audited the codebase for dead and unreachable code using RuboCop lint
cops, debride, and a grep/AST caller cross-reference. The codebase is
largely free of dead code; the one genuine site was an obsolete guard.
- clients/factory.rb: drop the `driver_version <=> [2, 13]` guard, which
is always true now that the gemspec requires mongo >= 2.18.0, and
remove the now-unused driver_version helper.
- config.rb: document that DeprecatedOptions::OPTIONS is intentionally
empty when no options are deprecated.1 parent cc06903 commit 416ae7e
2 files changed
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 114 | | |
119 | 115 | | |
120 | 116 | | |
| |||
125 | 121 | | |
126 | 122 | | |
127 | 123 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
137 | 130 | | |
| 131 | + | |
138 | 132 | | |
139 | 133 | | |
140 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
551 | 555 | | |
552 | 556 | | |
553 | 557 | | |
| |||
0 commit comments