diff --git a/include/opds_catalog.h b/include/opds_catalog.h index e931e7263..47d03fb0c 100644 --- a/include/opds_catalog.h +++ b/include/opds_catalog.h @@ -26,11 +26,7 @@ namespace kiwix { -class OpdsCatalog -{ -public: - static std::string getSearchUrl(const Filter& f); -}; +std::string getSearchUrl(const Filter& f); } // namespace kiwix diff --git a/src/opds_catalog.cpp b/src/opds_catalog.cpp index 2e42beeca..ee7dacb3e 100644 --- a/src/opds_catalog.cpp +++ b/src/opds_catalog.cpp @@ -61,7 +61,7 @@ std::string buildSearchString(const Filter& f) } // unnamed namespace -std::string OpdsCatalog::getSearchUrl(const Filter& f) +std::string getSearchUrl(const Filter& f) { const std::string searchString = buildSearchString(f); diff --git a/test/opds_catalog.cpp b/test/opds_catalog.cpp index 519cf83de..6647d5a32 100644 --- a/test/opds_catalog.cpp +++ b/test/opds_catalog.cpp @@ -25,7 +25,7 @@ using namespace kiwix; TEST(OpdsCatalog, getSearchUrl) { - #define EXPECT_SEARCH_URL(url) EXPECT_EQ(url, OpdsCatalog::getSearchUrl(f)) + #define EXPECT_SEARCH_URL(url) EXPECT_EQ(url, getSearchUrl(f)) { Filter f; EXPECT_SEARCH_URL("/catalog/v2/entries");