diff options
Diffstat (limited to 'src/WixToolset.Core/Linker.cs')
-rw-r--r-- | src/WixToolset.Core/Linker.cs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/WixToolset.Core/Linker.cs b/src/WixToolset.Core/Linker.cs index d5c51f96..a6d43715 100644 --- a/src/WixToolset.Core/Linker.cs +++ b/src/WixToolset.Core/Linker.cs | |||
@@ -901,51 +901,6 @@ namespace WixToolset.Core | |||
901 | } | 901 | } |
902 | } | 902 | } |
903 | 903 | ||
904 | #if DEAD_CODE | ||
905 | /// <summary> | ||
906 | /// Copies a table's rows to an output table. | ||
907 | /// </summary> | ||
908 | /// <param name="table">Source table to copy rows from.</param> | ||
909 | /// <param name="outputTable">Destination table in output to copy rows into.</param> | ||
910 | /// <param name="sectionId">Id of the section that the table lives in.</param> | ||
911 | private void CopyTableRowsToOutputTable(Table table, Table outputTable, string sectionId) | ||
912 | { | ||
913 | int[] localizedColumns = new int[table.Definition.Columns.Count]; | ||
914 | int localizedColumnCount = 0; | ||
915 | |||
916 | // if there are localization strings, figure out which columns can be localized in this table | ||
917 | if (null != this.Localizer) | ||
918 | { | ||
919 | for (int i = 0; i < table.Definition.Columns.Count; i++) | ||
920 | { | ||
921 | if (table.Definition.Columns[i].IsLocalizable) | ||
922 | { | ||
923 | localizedColumns[localizedColumnCount++] = i; | ||
924 | } | ||
925 | } | ||
926 | } | ||
927 | |||
928 | // process each row in the table doing the string resource substitutions | ||
929 | // then add the row to the output | ||
930 | foreach (Row row in table.Rows) | ||
931 | { | ||
932 | for (int j = 0; j < localizedColumnCount; j++) | ||
933 | { | ||
934 | Field field = row.Fields[localizedColumns[j]]; | ||
935 | |||
936 | if (null != field.Data) | ||
937 | { | ||
938 | field.Data = this.WixVariableResolver.ResolveVariables(row.SourceLineNumbers, (string)field.Data, true); | ||
939 | } | ||
940 | } | ||
941 | |||
942 | row.SectionId = (this.sectionIdOnRows ? sectionId : null); | ||
943 | outputTable.Rows.Add(row); | ||
944 | } | ||
945 | } | ||
946 | #endif | ||
947 | |||
948 | |||
949 | /// <summary> | 904 | /// <summary> |
950 | /// Resolve features for columns that have null guid placeholders. | 905 | /// Resolve features for columns that have null guid placeholders. |
951 | /// </summary> | 906 | /// </summary> |