Skip to content

Commit 438d7a4

Browse files
committed
minor cleanup
1 parent ab34565 commit 438d7a4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/BuiltinExtensions/ComfyUIBackend/WorkflowGenerator.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -764,12 +764,8 @@ public List<JArray> LoadPromptImagesForMainRef(List<Image> images)
764764
public (JArray, JArray, JArray, JArray) BuildInputImageHandling(List<JArray> images, JArray pos, JArray neg, JArray latent)
765765
{
766766
JArray imgNeg = null;
767-
string classId = FinalLoadedModel?.ModelClass?.ID ?? "";
768767
if (IsKontext() || IsOmniGen() || IsQwenImage() || IsAnyFlux2())
769768
{
770-
JArray img = null;
771-
bool onlyExplicit = (IsQwenImage() && !IsQwenImageEdit()) || IsAnyFlux2();
772-
bool includeImplicit = IsKontext() || (IsQwenImage() && IsQwenImageEdit());
773769
if (IsOmniGen() || IsQwenImageEditPlus())
774770
{
775771
imgNeg = neg;
@@ -793,7 +789,7 @@ void makeRefLatent(JArray image)
793789
imgNeg = [refLatentNodeNeg, 0];
794790
}
795791
}
796-
img = images[0];
792+
JArray img = images[0];
797793
makeRefLatent(img);
798794
for (int i = 1; i < images.Count; i++)
799795
{

0 commit comments

Comments
 (0)