diff --git a/socceraction/data/opta/loader.py b/socceraction/data/opta/loader.py index e13f364d..cd54c208 100644 --- a/socceraction/data/opta/loader.py +++ b/socceraction/data/opta/loader.py @@ -323,26 +323,6 @@ def _get_parsers_for_feeds( warnings.warn(f"No parser available for {feed} feeds. This feed is ignored.") return parsers - def file_names(self, competition_id: int, season_id: int): - """Return a list of all the file names in the data folder of a given season. - - Parameters - ---------- - competition_id : int - The ID of the competition. - season_id : int - The ID of the season. - """ - # feed = 'ma1' - feed_pattern = '{competition_id}\\{season_id}\\MA1\\{game_id}.json' - glob_pattern = feed_pattern.format( - competition_id=competition_id, season_id=season_id, game_id="*" - ) - feed_files = glob.glob(os.path.join(self.root, glob_pattern)) - for i in range(len(feed_files)): - feed_files[i] = feed_files[i][25:][:-5] - return feed_files - def competitions(self) -> DataFrame[OptaCompetitionSchema]: """Return a dataframe with all available competitions and seasons.