Skip to content

Commit 3883dc2

Browse files
committed
Removed unused parameternames.
1 parent 74df183 commit 3883dc2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

stringify/jss_forward.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace JSON
1313
std::ostream& stringify(std::ostream& stream, std::string const& name, ContainerT <T> const& values, StringificationOptions const& options = DEFAULT_OPTIONS,
1414
typename std::enable_if<has_forward_iterator<T, ContainerT>::value>::type* = nullptr)
1515
{
16-
Internal::stringify_i(stream, name, values, [](ContainerT <T> const& c){ auto b = c.cbegin(); std::advance(b, std::distance(b, c.cend()) - 1); return b; });
16+
Internal::stringify_i(stream, name, values, [](ContainerT <T> const& c){ auto b = c.cbegin(); std::advance(b, std::distance(b, c.cend()) - 1); return b; }, options);
1717
return stream;
1818
}
1919
}

stringify/jss_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace JSON
2020
ss << std::setw(width);
2121
ss << std::setiosflags(ioflags);
2222
}
23-
void IO_Options::apply(std::ostream& ss) const
23+
void IO_Options::apply(std::ostream&) const
2424
{
2525
return;
2626
}

stringify/jss_tuple.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace JSON
1515
namespace JS_Tuple {
1616
template <template <typename ...> class TupleType, std::size_t counter = 0, typename ... Types>
1717
inline typename std::enable_if<counter == sizeof...(Types), void>::type
18-
traverse_tuple(TupleType <Types...>&, std::vector <std::string>& result, std::deque <std::string>&, StringificationOptions const&) {}
18+
traverse_tuple(TupleType <Types...>&, std::vector <std::string>&, std::deque <std::string>&, StringificationOptions const&) {}
1919

2020
template <template <typename ...> class TupleType, std::size_t counter = 0, typename ... Types>
2121
inline typename std::enable_if<counter < sizeof...(Types), void>::type
@@ -39,7 +39,7 @@ namespace JSON
3939
}
4040

4141
template <template <typename, typename = std::allocator <std::string> > class NameContainerT, typename ... Types>
42-
std::ostream& stringify (std::ostream& stream, std::string const& name, NameContainerT <std::string> const& names, std::tuple <Types...> values, StringificationOptions options = DEFAULT_OPTIONS)
42+
std::ostream& stringify (std::ostream& stream, std::string const&, NameContainerT <std::string> const& names, std::tuple <Types...> values, StringificationOptions options = DEFAULT_OPTIONS)
4343
{
4444
std::deque <std::string> d_names {names.begin(), names.end()};
4545
std::vector <std::string> result;

0 commit comments

Comments
 (0)