Merge pull request #11046 from akx/ded-code

Remove a bunch of unused/vestigial code
This commit is contained in:
AUTOMATIC1111 2023-06-27 11:25:55 +03:00 committed by GitHub
commit 1bf01b73f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 0 additions and 89 deletions

View file

@ -32,13 +32,6 @@ import piexif
import piexif.helper
def upscaler_to_index(name: str):
try:
return [x.name.lower() for x in shared.sd_upscalers].index(name.lower())
except Exception as e:
raise HTTPException(status_code=400, detail=f"Invalid upscaler, needs to be one of these: {' , '.join([x.name for x in shared.sd_upscalers])}") from e
def script_name_to_index(name, scripts):
try:
return [script.title().lower() for script in scripts].index(name.lower())