Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored and vatsalghelani-csa committed Dec 9, 2024
1 parent d841ad6 commit 1312368
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,19 +539,6 @@ def dirname(self):
raise KeyError("Invalid enum: %r" % self)


def _get_data_model_root() -> pathlib.PosixPath:
"""Attempts to find the 'data_model' directory inside the 'chip.testing' package."""
# Access the 'chip.testing' package directly via importlib and pkg_resources
package = pkg_resources.files(importlib.import_module('chip.testing')) # Corrected: using importlib
try:
# We assume the 'data_model' directory is inside the package itself
data_model_root = package / 'data_model'
except FileNotFoundError:
raise FileNotFoundError(f"Data model directory not found in the package at {data_model_root}")

return data_model_root


def get_data_model_directory(data_model_directory: Union[PrebuiltDataModelDirectory, Traversable], data_model_level: DataModelLevel) -> Traversable:
"""
Get the directory of the data model for a specific version and level from the installed package.
Expand Down

0 comments on commit 1312368

Please sign in to comment.