Skip to content

Commit 6f131b1

Browse files
committed
Removed all instances of pragma region and pragma endregion
1 parent daf85e3 commit 6f131b1

File tree

6 files changed

+0
-109
lines changed

6 files changed

+0
-109
lines changed

Release/include/cpprest/filestream.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,6 @@ namespace details {
737737
}
738738
#endif
739739

740-
#pragma region Completion callback interface implementations
741740
class _filestream_callback_open : public details::_filestream_callback
742741
{
743742
public:
@@ -942,7 +941,6 @@ namespace details {
942941
_file_info *m_info;
943942
pplx::task_completion_event<int_type> m_op;
944943
};
945-
#pragma endregion
946944

947945
_file_info *m_info;
948946
async_operation_queue m_readOps;

Release/include/cpprest/interopstream.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ namespace Concurrency { namespace streams {
5757
template<typename CharType> class stdio_ostream;
5858
template<typename CharType> class stdio_istream;
5959

60-
#pragma region Asynchronous streams on top of synchronous stream buffers.
6160
namespace details {
6261

6362
/// <summary>
@@ -228,10 +227,6 @@ namespace Concurrency { namespace streams {
228227
stdio_istream & operator =(const stdio_istream &other) { basic_istream<CharType>::operator=(other); return *this; }
229228
};
230229

231-
#pragma endregion
232-
233-
#pragma region Synchronous streams on top of asynchronous stream buffers.
234-
235230
namespace details {
236231

237232
/// <summary>
@@ -504,10 +499,8 @@ namespace Concurrency { namespace streams {
504499
private:
505500
details::basic_async_streambuf<CharType> m_strbuf;
506501
};
507-
#pragma endregion
508502

509503
#if defined(__cplusplus_winrt)
510-
#pragma region WinRT streams interop
511504

512505
/// <summary>
513506
/// Static class containing factory functions for WinRT streams implemented on top of Casablanca async streams.
@@ -554,7 +547,6 @@ namespace Concurrency { namespace streams {
554547
};
555548

556549
#endif
557-
#pragma endregion
558550

559551
}} // namespaces
560552
#pragma warning(pop) // 4100

Release/src/json/json.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ utility::istream_t& web::json::operator >> (utility::istream_t &is, json::value
4747
return is;
4848
}
4949

50-
#if defined(_MSC_VER)
51-
#pragma region json::value Constructors
52-
#endif
53-
5450
web::json::value::value() :
5551
m_value(utility::details::make_unique<web::json::details::_Null>())
5652
#ifdef ENABLE_JSON_VALUE_VISUALIZER
@@ -151,13 +147,6 @@ web::json::value &web::json::value::operator=(web::json::value &&other)
151147
return *this;
152148
}
153149

154-
#if defined(_MSC_VER)
155-
#pragma endregion
156-
157-
158-
#pragma region Static Factories
159-
#endif
160-
161150
web::json::value web::json::value::null()
162151
{
163152
return web::json::value();
@@ -250,10 +239,6 @@ web::json::value web::json::value::array(std::vector<value> elements)
250239
);
251240
}
252241

253-
#if defined(_MSC_VER)
254-
#pragma endregion
255-
#endif
256-
257242
web::json::number web::json::value::as_number() const
258243
{
259244
return m_value->as_number();

Release/src/uri/uri.cpp

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ utility::string_t _uri_components::join()
101101

102102
using namespace details;
103103

104-
#if defined(_MSC_VER)
105-
#pragma region constructor
106-
#endif
107-
108104
uri::uri(const utility::string_t &uri_string)
109105
{
110106
if (!details::uri_parser().parse(uri_string, m_components))
@@ -123,13 +119,6 @@ uri::uri(const utility::char_t *uri_string): m_uri(uri_string)
123119
m_uri = m_components.join();
124120
}
125121

126-
#if defined(_MSC_VER)
127-
#pragma endregion
128-
129-
130-
#pragma region encoding
131-
#endif
132-
133122
utility::string_t uri::encode_impl(const utility::string_t &raw, const std::function<bool(int)>& should_encode)
134123
{
135124
const utility::char_t * const hex = _XPLATSTR("0123456789ABCDEF");
@@ -268,12 +257,6 @@ utility::string_t uri::decode(const utility::string_t &encoded)
268257
return to_string_t(utf8raw);
269258
}
270259

271-
#if defined(_MSC_VER)
272-
#pragma endregion
273-
274-
#pragma region splitting
275-
#endif
276-
277260
std::vector<utility::string_t> uri::split_path(const utility::string_t &path)
278261
{
279262
std::vector<utility::string_t> results;
@@ -329,23 +312,11 @@ std::map<utility::string_t, utility::string_t> uri::split_query(const utility::s
329312
return results;
330313
}
331314

332-
#if defined(_MSC_VER)
333-
#pragma endregion
334-
335-
#pragma region validation
336-
#endif
337-
338315
bool uri::validate(const utility::string_t &uri_string)
339316
{
340317
return uri_parser().validate(uri_string);
341318
}
342319

343-
#if defined(_MSC_VER)
344-
#pragma endregion
345-
346-
#pragma region accessors
347-
#endif
348-
349320
uri uri::authority() const
350321
{
351322
return uri_builder().set_scheme(this->scheme()).set_host(this->host()).set_port(this->port()).set_user_info(this->user_info()).to_uri();
@@ -356,12 +327,6 @@ uri uri::resource() const
356327
return uri_builder().set_path(this->path()).set_query(this->query()).set_fragment(this->fragment()).to_uri();
357328
}
358329

359-
#if defined(_MSC_VER)
360-
#pragma endregion
361-
362-
#pragma region operators
363-
#endif
364-
365330
bool uri::operator == (const uri &other) const
366331
{
367332
// Each individual URI component must be decoded before performing comparison.
@@ -409,8 +374,4 @@ bool uri::operator == (const uri &other) const
409374
return true;
410375
}
411376

412-
#if defined(_MSC_VER)
413-
#pragma endregion
414-
#endif
415-
416377
}

Release/src/uri/uri_builder.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@
3030
namespace web
3131
{
3232

33-
#if defined(_MSC_VER)
34-
#pragma region Validation
35-
36-
#pragma endregion
37-
38-
#pragma region Appending
39-
#endif
40-
4133
uri_builder &uri_builder::append_path(const utility::string_t &path, bool is_encode)
4234
{
4335
if(path.empty() || path == _XPLATSTR("/"))
@@ -113,12 +105,6 @@ uri_builder &uri_builder::append(const http::uri &relative_uri)
113105
return *this;
114106
}
115107

116-
#if defined(_MSC_VER)
117-
#pragma endregion
118-
119-
#pragma region URI Creation
120-
#endif
121-
122108
utility::string_t uri_builder::to_string()
123109
{
124110
return to_uri().to_string();
@@ -134,9 +120,5 @@ bool uri_builder::is_valid()
134120
return uri::validate(m_uri.join());
135121
}
136122

137-
#if defined(_MSC_VER)
138-
#pragma endregion
139-
#endif
140-
141123
} // namespace web
142124

Release/src/utilities/asyncrt_utils.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ scoped_c_thread_locale::~scoped_c_thread_locale()
157157
#endif
158158
}
159159

160-
#if defined(_MSC_VER)
161-
#pragma region error categories
162-
#endif
163-
164160
namespace details
165161
{
166162

@@ -264,12 +260,6 @@ const std::error_category & __cdecl linux_category()
264260

265261
}
266262

267-
#if defined(_MSC_VER)
268-
#pragma endregion
269-
270-
#pragma region conversions
271-
#endif
272-
273263
utf16string __cdecl conversions::utf8_to_utf16(const std::string &s)
274264
{
275265
if(s.empty())
@@ -595,12 +585,6 @@ utf16string __cdecl conversions::to_utf16string(const std::string &value) { retu
595585

596586
utf16string __cdecl conversions::to_utf16string(utf16string value) { return std::move(value); }
597587

598-
#if defined(_MSC_VER)
599-
#pragma endregion
600-
601-
#pragma region datetime
602-
#endif
603-
604588
#ifndef WIN32
605589
datetime datetime::timeval_to_datetime(struct timeval time)
606590
{
@@ -1038,12 +1022,6 @@ datetime __cdecl datetime::from_string(const utility::string_t& dateString, date
10381022
#endif
10391023
}
10401024

1041-
#if defined(_MSC_VER)
1042-
#pragma endregion
1043-
1044-
#pragma region "timespan"
1045-
#endif
1046-
10471025
/// <summary>
10481026
/// Converts a timespan/interval in seconds to xml duration string as specified by
10491027
/// http://www.w3.org/TR/xmlschema-2/#duration
@@ -1152,11 +1130,6 @@ utility::seconds __cdecl timespan::xml_duration_to_seconds(utility::string_t tim
11521130
return utility::seconds(numSecs);
11531131
}
11541132

1155-
#if defined(_MSC_VER)
1156-
#pragma endregion
1157-
#endif
1158-
1159-
11601133
const utility::string_t nonce_generator::c_allowed_chars(_XPLATSTR("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"));
11611134

11621135
utility::string_t nonce_generator::generate()

0 commit comments

Comments
 (0)