util/fscache: drop unused _libc

We no longer use the direct libc accessor, so drop it.

Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
This commit is contained in:
David Rheinsberg 2022-12-19 10:25:33 +01:00
parent 2c18a54e4d
commit 144e0126a3

View file

@ -9,7 +9,6 @@ the cache under a given limit.
# pylint: disable=too-many-lines
import contextlib
import ctypes
import errno
import json
import os
@ -212,7 +211,6 @@ class FsCache(contextlib.AbstractContextManager, os.PathLike):
# constant properties
_appid: str
_libc: linux.Libc
_path_cache: Any
# context-manager properties
@ -242,7 +240,6 @@ class FsCache(contextlib.AbstractContextManager, os.PathLike):
"""
self._appid = appid
self._libc = linux.Libc.default()
self._path_cache = os.fspath(path_cache)
self._active = False