Commit 105ffa40 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp90: Remove code that is never executed.

parent 72fb8e2c
...@@ -637,10 +637,8 @@ basic_string_char* __thiscall MSVCP_basic_string_char_erase( ...@@ -637,10 +637,8 @@ basic_string_char* __thiscall MSVCP_basic_string_char_erase(
{ {
TRACE("%p %lu %lu\n", this, pos, len); TRACE("%p %lu %lu\n", this, pos, len);
if(pos > this->size) { if(pos > this->size)
MSVCP__String_base_Xran(); MSVCP__String_base_Xran();
return NULL;
}
if(len > this->size-pos) if(len > this->size-pos)
len = this->size-pos; len = this->size-pos;
...@@ -664,10 +662,8 @@ basic_string_char* __thiscall MSVCP_basic_string_char_assign_substr( ...@@ -664,10 +662,8 @@ basic_string_char* __thiscall MSVCP_basic_string_char_assign_substr(
{ {
TRACE("%p %p %lu %lu\n", this, assign, pos, len); TRACE("%p %p %lu %lu\n", this, assign, pos, len);
if(assign->size < pos) { if(assign->size < pos)
MSVCP__String_base_Xran(); MSVCP__String_base_Xran();
return NULL;
}
if(len > assign->size-pos) if(len > assign->size-pos)
len = assign->size-pos; len = assign->size-pos;
...@@ -2087,10 +2083,8 @@ basic_string_wchar* __thiscall MSVCP_basic_string_wchar_erase( ...@@ -2087,10 +2083,8 @@ basic_string_wchar* __thiscall MSVCP_basic_string_wchar_erase(
{ {
TRACE("%p %lu %lu\n", this, pos, len); TRACE("%p %lu %lu\n", this, pos, len);
if(pos > this->size) { if(pos > this->size)
MSVCP__String_base_Xran(); MSVCP__String_base_Xran();
return NULL;
}
if(len > this->size-pos) if(len > this->size-pos)
len = this->size-pos; len = this->size-pos;
...@@ -2114,10 +2108,8 @@ basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_substr( ...@@ -2114,10 +2108,8 @@ basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_substr(
{ {
TRACE("%p %p %lu %lu\n", this, assign, pos, len); TRACE("%p %p %lu %lu\n", this, assign, pos, len);
if(assign->size < pos) { if(assign->size < pos)
MSVCP__String_base_Xran(); MSVCP__String_base_Xran();
return NULL;
}
if(len > assign->size-pos) if(len > assign->size-pos)
len = assign->size-pos; len = assign->size-pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment