Skip to content

Commit 1ee15c2

Browse files
committed
Removes: redundant comments
1 parent 04557fb commit 1ee15c2

File tree

1 file changed

+30
-31
lines changed
  • baseline-profiles/app/src/main/java/com/example/baselineprofiles_codelab/model

1 file changed

+30
-31
lines changed

baseline-profiles/app/src/main/java/com/example/baselineprofiles_codelab/model/Snack.kt

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ package com.example.baselineprofiles_codelab.model
1818

1919
import androidx.annotation.DrawableRes
2020
import androidx.compose.runtime.Immutable
21-
import com.example.baselineprofiles_codelab.R // Or your R file if different e.g. com.example.jetsnack.R
21+
import com.example.baselineprofiles_codelab.R
2222

2323
@Immutable
2424
data class Snack(
2525
val id: Long,
2626
val name: String,
2727
@DrawableRes
28-
val imageRes: Int, // Changed from imageUrl: String to imageRes: Int
28+
val imageRes: Int,
2929
val price: Long,
3030
val tagline: String = "",
3131
val tags: Set<String> = emptySet()
@@ -34,196 +34,195 @@ data class Snack(
3434
/**
3535
* Static data
3636
*/
37-
3837
val snacks = listOf(
3938
Snack(
4039
id = 1L,
4140
name = "Cupcake",
4241
tagline = "A tag line",
43-
imageRes = R.drawable.cupcake, // Assuming R.drawable.cupcake exists
42+
imageRes = R.drawable.cupcake,
4443
price = 299
4544
),
4645
Snack(
4746
id = 2L,
4847
name = "Donut",
4948
tagline = "A tag line",
50-
imageRes = R.drawable.donut, // Assuming R.drawable.donut exists
49+
imageRes = R.drawable.donut,
5150
price = 299
5251
),
5352
Snack(
5453
id = 3L,
5554
name = "Eclair",
5655
tagline = "A tag line",
57-
imageRes = R.drawable.eclair, // Assuming R.drawable.eclair exists
56+
imageRes = R.drawable.eclair,
5857
price = 299
5958
),
6059
Snack(
6160
id = 4L,
6261
name = "Froyo",
6362
tagline = "A tag line",
64-
imageRes = R.drawable.froyo, // Assuming R.drawable.froyo exists
63+
imageRes = R.drawable.froyo,
6564
price = 299
6665
),
6766
Snack(
6867
id = 5L,
6968
name = "Gingerbread",
7069
tagline = "A tag line",
71-
imageRes = R.drawable.gingerbread, // Assuming R.drawable.gingerbread exists
70+
imageRes = R.drawable.gingerbread,
7271
price = 499
7372
),
7473
Snack(
7574
id = 6L,
7675
name = "Honeycomb",
7776
tagline = "A tag line",
78-
imageRes = R.drawable.honeycomb, // Assuming R.drawable.honeycomb exists
77+
imageRes = R.drawable.honeycomb,
7978
price = 299
8079
),
8180
Snack(
8281
id = 7L,
8382
name = "Ice Cream Sandwich",
8483
tagline = "A tag line",
85-
imageRes = R.drawable.ice_cream_sandwich, // Assuming R.drawable.ice_cream_sandwich exists
84+
imageRes = R.drawable.ice_cream_sandwich,
8685
price = 1299
8786
),
8887
Snack(
8988
id = 8L,
9089
name = "Jellybean",
9190
tagline = "A tag line",
92-
imageRes = R.drawable.jelly_bean, // Assuming R.drawable.jelly_bean exists (note the underscore)
91+
imageRes = R.drawable.jelly_bean,
9392
price = 299
9493
),
9594
Snack(
9695
id = 9L,
9796
name = "KitKat",
9897
tagline = "A tag line",
99-
imageRes = R.drawable.kitkat, // Assuming R.drawable.kitkat exists
98+
imageRes = R.drawable.kitkat,
10099
price = 549
101100
),
102101
Snack(
103102
id = 10L,
104103
name = "Lollipop",
105104
tagline = "A tag line",
106-
imageRes = R.drawable.lollipop, // Assuming R.drawable.lollipop exists
105+
imageRes = R.drawable.lollipop,
107106
price = 299
108107
),
109108
Snack(
110109
id = 11L,
111110
name = "Marshmallow",
112111
tagline = "A tag line",
113-
imageRes = R.drawable.marshmallow, // Assuming R.drawable.marshmallow exists
112+
imageRes = R.drawable.marshmallow,
114113
price = 299
115114
),
116115
Snack(
117116
id = 12L,
118117
name = "Nougat",
119118
tagline = "A tag line",
120-
imageRes = R.drawable.nougat, // Assuming R.drawable.nougat exists
119+
imageRes = R.drawable.nougat,
121120
price = 299
122121
),
123122
Snack(
124123
id = 13L,
125124
name = "Oreo",
126125
tagline = "A tag line",
127-
imageRes = R.drawable.oreo, // Assuming R.drawable.oreo exists
126+
imageRes = R.drawable.oreo,
128127
price = 299
129128
),
130129
Snack(
131130
id = 14L,
132131
name = "Pie",
133132
tagline = "A tag line",
134-
imageRes = R.drawable.pie, // Assuming R.drawable.pie exists
133+
imageRes = R.drawable.pie,
135134
price = 299
136135
),
137136
Snack(
138137
id = 15L,
139138
name = "Chips",
140-
imageRes = R.drawable.chips, // Assuming R.drawable.chips exists
139+
imageRes = R.drawable.chips,
141140
price = 299
142141
),
143142
Snack(
144143
id = 16L,
145144
name = "Pretzels",
146-
imageRes = R.drawable.pretzels, // Assuming R.drawable.pretzels exists
145+
imageRes = R.drawable.pretzels,
147146
price = 299
148147
),
149148
Snack(
150149
id = 17L,
151150
name = "Smoothies",
152-
imageRes = R.drawable.smoothies, // Assuming R.drawable.smoothies exists
151+
imageRes = R.drawable.smoothies,
153152
price = 299
154153
),
155154
Snack(
156155
id = 18L,
157156
name = "Popcorn",
158-
imageRes = R.drawable.popcorn, // Assuming R.drawable.popcorn exists
157+
imageRes = R.drawable.popcorn,
159158
price = 299
160159
),
161160
Snack(
162161
id = 19L,
163162
name = "Almonds",
164-
imageRes = R.drawable.almonds, // Assuming R.drawable.almonds exists
163+
imageRes = R.drawable.almonds,
165164
price = 299
166165
),
167166
Snack(
168167
id = 20L,
169168
name = "Cheese",
170-
imageRes = R.drawable.cheese, // Assuming R.drawable.cheese exists
169+
imageRes = R.drawable.cheese,
171170
price = 299
172171
),
173172
Snack(
174173
id = 21L,
175174
name = "Apples",
176175
tagline = "A tag line",
177-
imageRes = R.drawable.apples, // Assuming R.drawable.apples exists
176+
imageRes = R.drawable.apples,
178177
price = 299
179178
),
180179
Snack(
181180
id = 22L,
182181
name = "Apple sauce",
183182
tagline = "A tag line",
184-
imageRes = R.drawable.apple_sauce, // Assuming R.drawable.apple_sauce exists
183+
imageRes = R.drawable.apple_sauce,
185184
price = 299
186185
),
187186
Snack(
188187
id = 23L,
189188
name = "Apple chips",
190189
tagline = "A tag line",
191-
imageRes = R.drawable.apple_chips, // Assuming R.drawable.apple_chips exists
190+
imageRes = R.drawable.apple_chips,
192191
price = 299
193192
),
194193
Snack(
195194
id = 24L,
196195
name = "Apple juice",
197196
tagline = "A tag line",
198-
imageRes = R.drawable.apple_juice, // Assuming R.drawable.apple_juice exists
197+
imageRes = R.drawable.apple_juice,
199198
price = 299
200199
),
201200
Snack(
202201
id = 25L,
203202
name = "Apple pie",
204203
tagline = "A tag line",
205-
imageRes = R.drawable.apple_pie, // Assuming R.drawable.apple_pie exists
204+
imageRes = R.drawable.apple_pie,
206205
price = 299
207206
),
208207
Snack(
209208
id = 26L,
210209
name = "Grapes",
211210
tagline = "A tag line",
212-
imageRes = R.drawable.grapes, // Assuming R.drawable.grapes exists
211+
imageRes = R.drawable.grapes,
213212
price = 299
214213
),
215214
Snack(
216215
id = 27L,
217216
name = "Kiwi",
218217
tagline = "A tag line",
219-
imageRes = R.drawable.kiwi, // Assuming R.drawable.kiwi exists
218+
imageRes = R.drawable.kiwi,
220219
price = 299
221220
),
222221
Snack(
223222
id = 28L,
224223
name = "Mango",
225224
tagline = "A tag line",
226-
imageRes = R.drawable.mango, // Assuming R.drawable.mango exists
225+
imageRes = R.drawable.mango,
227226
price = 299
228227
)
229228
)

0 commit comments

Comments
 (0)