Remove KeyProperties property expect

This property is unused, so we can just remove it.
This commit is contained in:
Matthijs Mekking 2025-10-01 16:35:20 +02:00
parent 0750603569
commit ade333bb64

View file

@ -190,7 +190,6 @@ class KeyProperties:
@staticmethod
def default(with_state=True) -> "KeyProperties":
properties = {
"expect": True,
"private": True,
"legacy": False,
"role": "csk",
@ -552,9 +551,6 @@ class Key:
"""
Check the key with given properties.
"""
if not properties.properties["expect"]:
return False
# Check file existence.
# Noop. If file is missing then the get_metadata calls will fail.
@ -1523,7 +1519,6 @@ def policy_to_properties(ttl, keys: List[str]) -> List[KeyProperties]:
count += 1
line = key.split()
keyprop = KeyProperties(f"KEY{count}", {}, {}, {})
keyprop.properties["expect"] = True
keyprop.properties["private"] = True
keyprop.properties["legacy"] = False
keyprop.properties["offset"] = timedelta(0)