2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Drop get_profile_filename() from logparser.py

This function is unused since the last commit.
This commit is contained in:
Christian Boltz
2019-01-02 20:42:57 +01:00
parent 03ea5b82b7
commit ed692337a5

View File

@@ -450,14 +450,3 @@ class ReadLog:
return True
return False
def get_profile_filename(self, profile):
"""Returns the full profile name"""
if profile.startswith('/'):
# Remove leading /
profile = profile[1:]
else:
profile = "profile_" + profile
profile = profile.replace('/', '.')
full_profilename = self.profile_dir + '/' + profile
return full_profilename