Commit 9be9a5a
authored
Cleanup | Remove More Dead SMI Code (Part 2) (#3414)
* Oh hey, InOutOfProcHelper.InProc always returns false! Let's propagate that false everywhere it was being used to determine what other branches of code can be deleted
* Remove usages of IsInProc that were always false
* Remove dead code in SmiContextFactory and distill properties down to exceptions they will always throw b/c _smiLink will always be null
* Propagate always thrown exceptions, remove that code from SmiContextFactory
* Remove SmiVersion that was hardcoded to 2008. Propagate 2008 to all usages of the property
It can continue to be propagated if we find out the version is always the same...
* Remove SmiContextFactory.LatestVersion by replacing usage with 2008 and propagate that forward, allowing us to remove MetadataUtilsSmi.IsValidForSmiVersion and a block of code in SqlDataRecord
* Propagate 2008 version, which eliminates a bunch of conditions, eliminating the last uses of SmiVersion2008
* Delete the now unused SmiContextFactory class
* Remove _smiRequestContext from SqlCommand since it is always assigned `null`, replacing usages of it with `null`
* Remove context parameter from ValueUtilsSmi.GetOutputParameterV3Smi, since it is always passed to itself
* Remove context parameter from ValueUtilsSmi.GetOutputParameterV200Smi, since it is always passed to itself and is always null
* Delete ExecuteToPipe since it is no longer being used.
* Remove _recordContext from SqlDataRecord since it is always null, propagate null to all usages of it
* SqlInternalConnectionSmi.InternalContext is always null, deleting and propagating null to all usages of it
Also removing SqlInternalConnectionSmi.SmiConnection since it's never used.
* Removing SqlContext usages from ValueUtilsSmi - it was always null, so it can be eliminated
* Removing last references to SqlContext in SqlInternalConnectionSmi
* Delete SmiContext
* @edwardneal is a hero, deleting another bundle of unused code.1 parent 95253ac commit 9be9a5a
File tree
20 files changed
+213
-1084
lines changed- src/Microsoft.Data.SqlClient
- netfx/src
- Microsoft/Data
- SqlClient
- SqlTypes
- src/Microsoft/Data/SqlClient
- Server
20 files changed
+213
-1084
lines changedLines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | 546 | | |
553 | 547 | | |
554 | 548 | | |
| |||
953 | 947 | | |
954 | 948 | | |
955 | 949 | | |
956 | | - | |
957 | | - | |
958 | 950 | | |
959 | 951 | | |
960 | 952 | | |
| |||
968 | 960 | | |
969 | 961 | | |
970 | 962 | | |
971 | | - | |
972 | 963 | | |
973 | 964 | | |
974 | 965 | | |
| |||
Lines changed: 0 additions & 110 deletions
This file was deleted.
Lines changed: 0 additions & 147 deletions
This file was deleted.
Lines changed: 14 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
| 466 | + | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
| 478 | + | |
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
481 | 482 | | |
482 | | - | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | 602 | | |
606 | 603 | | |
607 | 604 | | |
| |||
1560 | 1557 | | |
1561 | 1558 | | |
1562 | 1559 | | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | 1560 | | |
1590 | 1561 | | |
1591 | 1562 | | |
| |||
6199 | 6170 | | |
6200 | 6171 | | |
6201 | 6172 | | |
6202 | | - | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
| 6177 | + | |
6203 | 6178 | | |
6204 | 6179 | | |
6205 | 6180 | | |
6206 | 6181 | | |
6207 | | - | |
| 6182 | + | |
| 6183 | + | |
| 6184 | + | |
| 6185 | + | |
| 6186 | + | |
6208 | 6187 | | |
6209 | 6188 | | |
6210 | 6189 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
| 1912 | + | |
1912 | 1913 | | |
1913 | 1914 | | |
1914 | 1915 | | |
| |||
0 commit comments