diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-07-29 12:32:27 +0100 | 
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-07-29 12:32:27 +0100 | 
| commit | 97944b1fca4b680aeb74156ff93172f5f60204cf (patch) | |
| tree | da65a3324f54d00fc9564e79e6de4e6be06ec94b | |
| parent | Don't pass trivially copyable params as const ref (diff) | |
| download | icespider-97944b1fca4b680aeb74156ff93172f5f60204cf.tar.bz2 icespider-97944b1fca4b680aeb74156ff93172f5f60204cf.tar.xz icespider-97944b1fca4b680aeb74156ff93172f5f60204cf.zip  | |
Remove unused boost::lexical_cast wrappers
| -rw-r--r-- | icespider/core/ihttpRequest.cpp | 23 | 
1 files changed, 0 insertions, 23 deletions
diff --git a/icespider/core/ihttpRequest.cpp b/icespider/core/ihttpRequest.cpp index 21c34fb..64a891d 100644 --- a/icespider/core/ihttpRequest.cpp +++ b/icespider/core/ihttpRequest.cpp @@ -4,7 +4,6 @@  #include "util.h"  #include "xwwwFormUrlEncoded.h"  #include <algorithm> -#include <boost/lexical_cast.hpp>  #include <compileTimeFormatter.h>  #include <cstdlib>  #include <ctime> @@ -143,18 +142,6 @@ namespace IceSpider {  		return url[idx];  	} -	template<typename T, typename Y> -	inline T -	wrapLexicalCast(const Y & y) -	{ -		try { -			return boost::lexical_cast<T>(y); -		} -		catch (const boost::bad_lexical_cast &) { -			throw Http400_BadRequest(); -		} -	} -  	// Set-Cookie: value[; expires=date][; domain=domain][; path=path][; secure]  	void  	IHttpRequest::setCookie(const std::string_view name, const std::string_view value, const OptionalString & d, @@ -186,16 +173,6 @@ namespace IceSpider {  		setHeader(H::SET_COOKIE, o.str());  	} -	template<typename T> -	inline std::optional<T> -	optionalLexicalCast(const OptionalString & p) -	{ -		if (p) { -			return wrapLexicalCast<T>(*p); -		} -		return {}; -	} -  	void  	IHttpRequest::responseRedirect(const std::string_view url, const OptionalString & statusMsg) const  	{  | 
