Skip to content

Commit

Permalink
Remove unused get_metadata_type functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Christdej committed Mar 6, 2023
1 parent c3b4ea2 commit 96837ed
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/robot_interface/models/inspection/inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,42 +49,22 @@ class Inspection:
metadata: InspectionMetadata
data: Optional[bytes] = field(default=None, init=False)

@staticmethod
def get_metadata_type() -> Type[InspectionMetadata]:
return InspectionMetadata


@dataclass
class Image(Inspection):
metadata: ImageMetadata

@staticmethod
def get_metadata_type() -> Type[InspectionMetadata]:
return ImageMetadata


@dataclass
class ThermalImage(Inspection):
metadata: ThermalImageMetadata

@staticmethod
def get_metadata_type() -> Type[InspectionMetadata]:
return ThermalImageMetadata


@dataclass
class Video(Inspection):
metadata: VideoMetadata

@staticmethod
def get_metadata_type() -> Type[InspectionMetadata]:
return VideoMetadata


@dataclass
class ThermalVideo(Inspection):
metadata: ThermalVideoMetadata

@staticmethod
def get_metadata_type() -> Type[InspectionMetadata]:
return ThermalVideoMetadata

0 comments on commit 96837ed

Please sign in to comment.