Merge pull request #2123 from notargs/remove_linq_snippets

Remove linq snippets disused on unity update
This commit is contained in:
ousttrue 2023-08-08 15:47:17 +09:00 committed by GitHub
commit e32d760492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ namespace UniVRM10
/// <param name="expressionWeights"></param>
public void SetValues(Dictionary<ExpressionKey, float> expressionWeights)
{
foreach (var (key, weight) in expressionWeights.Select(kv => (kv.Key, kv.Value)))
foreach (var (key, weight) in expressionWeights)
{
AccumulateValue(key, weight);
}

View File

@ -143,7 +143,7 @@ namespace UniVRM10
public void Replace(IDictionary<VRM10Expression, VRM10Expression> map)
{
foreach (var (k, v) in map.Select(kv => (kv.Key, kv.Value)))
foreach (var (k, v) in map)
{
Replace(k, v);
}

View File

@ -81,7 +81,7 @@ namespace UniVRM10
public void SetWeights(IEnumerable<KeyValuePair<ExpressionKey, float>> weights)
{
foreach (var (expressionKey, weight) in weights.Select(kv => (kv.Key, kv.Value)))
foreach (var (expressionKey, weight) in weights)
{
if (_inputWeights.ContainsKey(expressionKey))
{