Remove linq snippets disused on unity update.

This commit is contained in:
notargs 2023-08-08 15:31:13 +09:00
parent 8855782499
commit 8bd617e7d7
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))
{