Skip to content

Commit

Permalink
IGL: Remove getFileLoaderPtr method from Platform
Browse files Browse the repository at this point in the history
Summary: This diff removes the getFileLoaderPtr method from Platform as it is no longer being used.

Reviewed By: mmaurer

Differential Revision: D49135948

fbshipit-source-id: 2b6664ed8425971c89ff94d1a2a9d88f41248e70
  • Loading branch information
Eric Griffith authored and facebook-github-bot committed Sep 16, 2023
1 parent 40b7fbf commit 00c8805
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion shell/shared/platform/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Platform {
virtual ImageLoader& getImageLoader() noexcept = 0;
[[nodiscard]] virtual const ImageWriter& getImageWriter() const noexcept = 0;
virtual FileLoader& getFileLoader() const noexcept = 0;
virtual std::shared_ptr<FileLoader> getFileLoaderPtr() const noexcept = 0;
virtual InputDispatcher& getInputDispatcher() noexcept;

virtual DisplayContext& getDisplayContext() noexcept {
Expand Down
4 changes: 0 additions & 4 deletions shell/shared/platform/android/PlatformAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,4 @@ FileLoader& PlatformAndroid::getFileLoader() const noexcept {
return *fileLoader_;
}

std::shared_ptr<FileLoader> PlatformAndroid::getFileLoaderPtr() const noexcept {
return fileLoader_;
}

} // namespace igl::shell
1 change: 0 additions & 1 deletion shell/shared/platform/android/PlatformAndroid.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class PlatformAndroid : public Platform {
ImageLoader& getImageLoader() noexcept override;
const ImageWriter& getImageWriter() const noexcept override;
FileLoader& getFileLoader() const noexcept override;
std::shared_ptr<FileLoader> getFileLoaderPtr() const noexcept override;

private:
std::shared_ptr<igl::IDevice> device_;
Expand Down
1 change: 0 additions & 1 deletion shell/shared/platform/ios/PlatformIos.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class PlatformIos : public Platform {
ImageLoader& getImageLoader() noexcept override;
[[nodiscard]] const ImageWriter& getImageWriter() const noexcept override;
FileLoader& getFileLoader() const noexcept override;
std::shared_ptr<FileLoader> getFileLoaderPtr() const noexcept override;

private:
std::shared_ptr<igl::IDevice> device_;
Expand Down
4 changes: 0 additions & 4 deletions shell/shared/platform/ios/PlatformIos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,4 @@
return *fileLoader_;
}

std::shared_ptr<FileLoader> PlatformIos::getFileLoaderPtr() const noexcept {
return fileLoader_;
}

} // namespace igl::shell
4 changes: 0 additions & 4 deletions shell/shared/platform/mac/PlatformMac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,4 @@ FileLoader& PlatformMac::getFileLoader() const noexcept {
return *fileLoader_;
}

std::shared_ptr<FileLoader> PlatformMac::getFileLoaderPtr() const noexcept {
return fileLoader_;
}

} // namespace igl::shell
1 change: 0 additions & 1 deletion shell/shared/platform/mac/PlatformMac.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class PlatformMac : public Platform {
ImageLoader& getImageLoader() noexcept override;
[[nodiscard]] const ImageWriter& getImageWriter() const noexcept override;
FileLoader& getFileLoader() const noexcept override;
std::shared_ptr<FileLoader> getFileLoaderPtr() const noexcept override;

private:
std::shared_ptr<igl::IDevice> device_;
Expand Down
4 changes: 0 additions & 4 deletions shell/shared/platform/win/PlatformWin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,4 @@ FileLoader& PlatformWin::getFileLoader() const noexcept {
return *fileLoader_;
}

std::shared_ptr<FileLoader> PlatformWin::getFileLoaderPtr() const noexcept {
return fileLoader_;
}

} // namespace igl::shell
1 change: 0 additions & 1 deletion shell/shared/platform/win/PlatformWin.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class PlatformWin : public Platform {
ImageLoader& getImageLoader() noexcept override;
const ImageWriter& getImageWriter() const noexcept override;
FileLoader& getFileLoader() const noexcept override;
std::shared_ptr<FileLoader> getFileLoaderPtr() const noexcept override;

private:
std::shared_ptr<igl::IDevice> device_;
Expand Down

0 comments on commit 00c8805

Please sign in to comment.