@joebigelow / wix / commits / 29be4a31

Remove unused WixMediaRow

Rob Mensching committed May 30, 2020 at 14:28 UTC 29be4a31c4cf1268d847d4c37c70487f29b84701
2 files changed -75
src/WixToolset.Data/WindowsInstaller/Rows/WixMediaRow.cs deleted
-60
@@ -1,60 +0,0 @@
1 -// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2 -
3 -namespace WixToolset.Data.WindowsInstaller.Rows
4 -{
5 - /// <summary>
6 - /// Specialization of a row for the WixMedia table.
7 - /// </summary>
8 - public sealed class WixMediaRow : Row
9 - {
10 - /// <summary>
11 - /// Creates a WixMedia row that does not belong to a table.
12 - /// </summary>
13 - /// <param name="sourceLineNumbers">Original source lines for this row.</param>
14 - /// <param name="tableDef">TableDefinition this Media row belongs to and should get its column definitions from.</param>
15 - public WixMediaRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDef) :
16 - base(sourceLineNumbers, tableDef)
17 - {
18 - }
19 -
20 - /// <summary>
21 - /// Creates a WixMedia row that belongs to a table.
22 - /// </summary>
23 - /// <param name="sourceLineNumbers">Original source lines for this row.</param>
24 - /// <param name="table">Table this Media row belongs to and should get its column definitions from.</param>
25 - public WixMediaRow(SourceLineNumber sourceLineNumbers, Table table) :
26 - base(sourceLineNumbers, table)
27 - {
28 - }
29 -
30 - /// <summary>
31 - /// Gets or sets the disk id for this media.
32 - /// </summary>
33 - /// <value>Disk id for the media.</value>
34 - public int DiskId
35 - {
36 - get { return (int)this.Fields[0].Data; }
37 - set { this.Fields[0].Data = value; }
38 - }
39 -
40 - /// <summary>
41 - /// Gets or sets the compression level for this media row.
42 - /// </summary>
43 - /// <value>Compression level.</value>
44 - public CompressionLevel? CompressionLevel
45 - {
46 - get { return (CompressionLevel?)this.Fields[1].AsNullableInteger(); }
47 - set { this.Fields[1].Data = value; }
48 - }
49 -
50 - /// <summary>
51 - /// Gets or sets the layout location for this media row.
52 - /// </summary>
53 - /// <value>Layout location to the root of the media.</value>
54 - public string Layout
55 - {
56 - get { return (string)this.Fields[2].Data; }
57 - set { this.Fields[2].Data = value; }
58 - }
59 - }
60 -}
src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs
-15
@@ -1925,20 +1925,6 @@ namespace WixToolset.Data.WindowsInstaller
1925 tupleIdIsPrimaryKey: true
1926 );
1927
1928 - public static readonly TableDefinition WixMedia = new TableDefinition(
1929 - "WixMedia",
1930 - null,
1931 - new[]
1932 - {
1933 - new ColumnDefinition("DiskId_", ColumnType.Number, 2, primaryKey: true, nullable: false, ColumnCategory.Unknown),
1934 - new ColumnDefinition("CompressionLevel", ColumnType.Number, 2, primaryKey: false, nullable: true, ColumnCategory.Unknown, minValue: 0, maxValue: 4),
1935 - new ColumnDefinition("Layout", ColumnType.String, 0, primaryKey: false, nullable: true, ColumnCategory.Unknown),
1936 - },
1937 - unreal: true,
1938 - strongRowType: typeof(WixMediaRow),
1939 - tupleIdIsPrimaryKey: false
1940 - );
1941 -
1928 public static readonly TableDefinition WixMediaTemplate = new TableDefinition(
1929 "WixMediaTemplate",
1930 TupleDefinitions.WixMediaTemplate,
@@ -2353,7 +2339,6 @@ namespace WixToolset.Data.WindowsInstaller
2339 WixFragment,
2340 WixInstanceComponent,
2341 WixInstanceTransforms,
2356 - WixMedia,
2342 WixMediaTemplate,
2343 WixMerge,
2344 WixOrdering,