Remove DummyNegativePrompt node and references

Deleted the DummyNegativePrompt class and its mappings from the node registration. This node is no longer needed for KSampler's negative prompt input.
This commit is contained in:
Maxed-Out-99
2025-07-15 21:50:28 -07:00
parent 06060ffedc
commit 0f96cb21cb
-33
View File
@@ -320,37 +320,6 @@ class PromptWithGuidance(ComfyNodeABC):
conditioning = node_helpers.conditioning_set_values(conditioning, {"guidance": guidance})
return (conditioning,)
########################################################################################################################
class DummyNegativePrompt(ComfyNodeABC):
"""
A placeholder node that encodes an empty string into conditioning
to satisfy KSampler's required negative prompt input.
This node does *not* expose a text input and is not meant to be modified.
"""
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"clip": (IO.CLIP, {"tooltip": "The CLIP model used for encoding the (empty) text."}),
}
}
RETURN_TYPES = (IO.CONDITIONING,)
FUNCTION = "encode_empty"
CATEGORY = "KJNodes/conditioning"
def encode_empty(self, clip):
if clip is None:
raise RuntimeError("CLIP model is None. Your checkpoint may not contain a text encoder.")
# Use a literal space instead of empty string to avoid tokenization issues
tokens = clip.tokenize(" ")
conditioning = clip.encode_from_tokens_scheduled(tokens)
return (conditioning,)
########################################################################################################################
# NODE MAPPING
@@ -360,7 +329,6 @@ NODE_CLASS_MAPPINGS = {
"Image Scale To Total Pixels (SDXL Safe)": ImageScaleToTotalPixelsSafe,
"Flux Image Scale To Total Pixels (Flux Safe)": FluxImageScaleToTotalPixelsSafe,
"Prompt With Guidance (Flux)": PromptWithGuidance,
"Dummy Negative Prompt": DummyNegativePrompt,
}
NODE_DISPLAY_NAME_MAPPINGS = {
@@ -369,5 +337,4 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"Image Scale To Total Pixels (SDXL Safe)": "Scale Image (SDXL Safe) MXD",
"Flux Image Scale To Total Pixels (Flux Safe)": "Scale Image (Flux Safe) MXD",
"Prompt With Guidance (Flux)": "Prompt with Flux Guidance MXD",
"Dummy Negative Prompt": "Dummy Prompt MXD",
}