You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments