From 5d4343773c9fa361c6fbc243fadcdf293d0c2059 Mon Sep 17 00:00:00 2001 From: OttoHatt <68089630+OttoHatt@users.noreply.github.com> Date: Sat, 23 Sep 2023 15:09:50 +0100 Subject: [PATCH 1/2] fix: replace deprecated 'toHsv' with 'ToHsv' --- src/color3utils/src/Shared/Color3Utils.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/color3utils/src/Shared/Color3Utils.lua b/src/color3utils/src/Shared/Color3Utils.lua index d34557b0e7d..55c1407d209 100644 --- a/src/color3utils/src/Shared/Color3Utils.lua +++ b/src/color3utils/src/Shared/Color3Utils.lua @@ -49,7 +49,7 @@ end @return Color3 ]=] function Color3Utils.scaleValue(color3, percent) - local h, s, v = Color3.toHSV(color3) + local h, s, v = color3:ToHsv() return Color3.fromHSV(h, s, percent*v) end @@ -60,7 +60,7 @@ end @return Color3 ]=] function Color3Utils.setValue(color3, value) - local h, s, _ = Color3.toHSV(color3) + local h, s, _ = color3:ToHsv() return Color3.fromHSV(h, s, value) end @@ -71,7 +71,7 @@ end @return Color3 ]=] function Color3Utils.setHue(color3, hue) - local _, s, v = Color3.toHSV(color3) + local _, s, v = color3:ToHsv() return Color3.fromHSV(hue, s, v) end @@ -82,7 +82,7 @@ end @return Color3 ]=] function Color3Utils.scaleSaturation(color3, percent) - local h, s, v = Color3.toHSV(color3) + local h, s, v = color3:ToHsv() return Color3.fromHSV(h, percent*s, v) end @@ -93,7 +93,7 @@ end @return Color3 ]=] function Color3Utils.setSaturation(color3, saturation) - local h, _, v = Color3.toHSV(color3) + local h, _, v = color3:ToHsv() return Color3.fromHSV(h, saturation, v) end From a070456dadfe1736a6b5340551c0f3324928e61e Mon Sep 17 00:00:00 2001 From: OttoHatt <68089630+OttoHatt@users.noreply.github.com> Date: Sat, 23 Sep 2023 15:10:34 +0100 Subject: [PATCH 2/2] fix: Duplicate 'ObservableMapList:GetListForKey' --- .../src/Shared/ObservableMapList.lua | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/observablecollection/src/Shared/ObservableMapList.lua b/src/observablecollection/src/Shared/ObservableMapList.lua index 3e7a055d7fa..f800e772648 100644 --- a/src/observablecollection/src/Shared/ObservableMapList.lua +++ b/src/observablecollection/src/Shared/ObservableMapList.lua @@ -198,23 +198,6 @@ function ObservableMapList:ObserveItemsForKeyBrio(key) }) end ---[=[ - Gets a list for a given key. - - @param key TKey - @return { TValue } -]=] -function ObservableMapList:GetListForKey(key) - assert(key ~= nil, "Bad key") - - local observableList = self:GetListForKey(key) - if not observableList then - return {} - end - - return observableList:GetList() -end - --[=[ Gets the observable list for the given key @param key TKey