Skip to content

Commit

Permalink
unused now methods removed
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyG committed Oct 5, 2023
1 parent 26d0050 commit ecf9816
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
7 changes: 0 additions & 7 deletions lib/core/include/ifc/File.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ namespace ifc
File (File &&) noexcept;
File& operator=(File &&) noexcept;

private:
template<typename T, typename Index>
Partition<T, Index> get_partition_with_cache(std::optional<Partition<T, Index>> & cache) const;

template<typename T, typename Index>
Partition<T, Index> get_partition_with_cache(std::optional<Partition<T, Index>> & cache, std::string_view) const;

private:
struct Impl;
std::unique_ptr<Impl> impl_;
Expand Down
22 changes: 0 additions & 22 deletions lib/core/src/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,6 @@ namespace ifc
return get_partition<T, Index>(it->second);
}

template<typename T, typename Index>
std::optional<Partition<T, Index>> try_get_partition() const
{
return try_get_partition<T, Index>(T::PartitionName);
}

template<typename T, typename Index>
Partition<T, Index> get_partition(std::string_view name) const
{
Expand Down Expand Up @@ -947,22 +941,6 @@ namespace ifc
return get_value<Sequence>(declaration, impl_->trait_friendship_of_class());
}

template<typename T, typename Index>
Partition<T, Index> File::get_partition_with_cache(std::optional<Partition<T, Index>> & cache) const
{
return get_partition_with_cache<T, Index>(cache, T::PartitionName);
}

template <typename T, typename Index>
Partition<T, Index> File::get_partition_with_cache(std::optional<Partition<T, Index>>& cache, std::string_view name) const
{
if (cache.has_value())
return *cache;
auto result = impl_->get_partition<T, Index>(name);
cache = result;
return result;
}

File::File(BlobView data)
: impl_(std::make_unique<Impl>(data))
{
Expand Down

0 comments on commit ecf9816

Please sign in to comment.