Skip to content

Commit 43dab1b

Browse files
committed
Merged PR 54857: Figma minor cleanup
Removed unused methods to avoid warnings
1 parent 842795c commit 43dab1b

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

Editor/Inspector/FigmaUpdater.cs

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -194,45 +194,11 @@ async Task SaveRemapsAsync()
194194

195195
async Task DownloadImagesAsync(int progress, CancellationToken token)
196196
{
197-
async Task WriteInvalidSvgAsync(string assetPath)
198-
{
199-
XmlWriter writer = XmlWriter.Create(Path.Combine(folder, assetPath), new XmlWriterSettings
200-
{
201-
Indent = true,
202-
NewLineOnAttributes = true,
203-
IndentChars = " ",
204-
Async = true
205-
});
206-
writer.WriteStartElement("svg");
207-
{
208-
writer.WriteStartElement("rect");
209-
writer.WriteAttributeString("width", "100");
210-
writer.WriteAttributeString("height", "100");
211-
writer.WriteAttributeString("fill", "magenta");
212-
await writer.WriteEndElementAsync();
213-
await Task.Delay(0, token);
214-
}
215-
216-
await writer.WriteEndElementAsync();
217-
await Task.Delay(0, token);
218-
219-
writer.Close();
220-
}
221-
async Task WriteInvalidPngAsync(string assetPath)
222-
{
223-
Texture2D magenta = new(2, 2);
224-
magenta.SetPixel(0, 0, Color.magenta);
225-
magenta.SetPixel(1, 0, Color.magenta);
226-
magenta.SetPixel(0, 1, Color.magenta);
227-
magenta.SetPixel(1, 1, Color.magenta);
228-
magenta.Apply();
229-
await File.WriteAllBytesAsync(Path.Combine(folder, assetPath), magenta.EncodeToPNG(), token);
230-
}
231197
async Task GetImageAsync(string nodeID, string url, string extension)
232198
{
233199
(bool fileExists, string _) = GetAssetPath(nodeID, extension);
234200

235-
Progress.SetStepLabel(progress, $"{url}");
201+
Progress.SetStepLabel(progress, url);
236202

237203
Dictionary<string, string> responseHeaders = new();
238204
Dictionary<string, string> requestHeaders = headers.ToDictionary(header => header.Key, header => header.Value);

0 commit comments

Comments
 (0)