Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Aug 15, 2024
1 parent f68657d commit fa54696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/archive-file.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct ArHdr {
}
};

template <typename Context, typename MappedFile>
template <typename Context>
std::vector<MappedFile *>
read_thin_archive_members(Context &ctx, MappedFile *mf) {
u8 *begin = mf->data;
Expand Down Expand Up @@ -123,7 +123,7 @@ read_thin_archive_members(Context &ctx, MappedFile *mf) {
return vec;
}

template <typename Context, typename MappedFile>
template <typename Context>
std::vector<MappedFile *> read_fat_archive_members(Context &ctx, MappedFile *mf) {
u8 *begin = mf->data;
u8 *data = begin + 8;
Expand Down Expand Up @@ -161,7 +161,7 @@ std::vector<MappedFile *> read_fat_archive_members(Context &ctx, MappedFile *mf)
return vec;
}

template <typename Context, typename MappedFile>
template <typename Context>
std::vector<MappedFile *> read_archive_members(Context &ctx, MappedFile *mf) {
std::string_view str = mf->get_contents();
if (str.starts_with("!<arch>\n"))
Expand Down

0 comments on commit fa54696

Please sign in to comment.