summaryrefslogtreecommitdiff
path: root/src/classlibnative
diff options
context:
space:
mode:
authormikedn <onemihaid@hotmail.com>2018-04-17 20:58:51 +0300
committerJan Kotas <jkotas@microsoft.com>2018-04-17 10:58:51 -0700
commit395067d68b4276476f1f0b3d85d7fa94e97e1ef0 (patch)
tree37172982ec85ec6f62979d3796f2d21259b3432b /src/classlibnative
parent34c7fe62cabfc8f99c8ab83c8d734c88bbeb2b1b (diff)
downloadcoreclr-395067d68b4276476f1f0b3d85d7fa94e97e1ef0.tar.gz
coreclr-395067d68b4276476f1f0b3d85d7fa94e97e1ef0.tar.bz2
coreclr-395067d68b4276476f1f0b3d85d7fa94e97e1ef0.zip
Convert native StringBuilder methods to managed (#17472)
Diffstat (limited to 'src/classlibnative')
-rw-r--r--src/classlibnative/bcltype/CMakeLists.txt1
-rw-r--r--src/classlibnative/bcltype/stringbuffer.cpp48
-rw-r--r--src/classlibnative/bcltype/stringbuffer.h38
-rw-r--r--src/classlibnative/bcltype/stringnative.cpp1
4 files changed, 0 insertions, 88 deletions
diff --git a/src/classlibnative/bcltype/CMakeLists.txt b/src/classlibnative/bcltype/CMakeLists.txt
index e2da2308bb..785f6b5b44 100644
--- a/src/classlibnative/bcltype/CMakeLists.txt
+++ b/src/classlibnative/bcltype/CMakeLists.txt
@@ -17,7 +17,6 @@ set(BCLTYPE_SOURCES
oavariant.cpp
objectnative.cpp
stringnative.cpp
- stringbuffer.cpp
system.cpp
varargsnative.cpp
variant.cpp
diff --git a/src/classlibnative/bcltype/stringbuffer.cpp b/src/classlibnative/bcltype/stringbuffer.cpp
deleted file mode 100644
index d060a7e1ba..0000000000
--- a/src/classlibnative/bcltype/stringbuffer.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-//
-// File: StringBuffer.cpp
-//
-
-//
-// Purpose: The implementation of the StringBuffer class.
-//
-//
-
-#include "common.h"
-
-#include "object.h"
-#include "excep.h"
-#include "frames.h"
-#include "vars.hpp"
-#include "string.h"
-#include "stringbuffer.h"
-
-FCIMPL3(void, COMStringBuffer::ReplaceBufferInternal, StringBufferObject* thisRefUNSAFE, __in_ecount(newLength) WCHAR* newBuffer, INT32 newLength)
-{
- FCALL_CONTRACT;
-
- STRINGBUFFERREF thisRef = (STRINGBUFFERREF)ObjectToOBJECTREF(thisRefUNSAFE);
- HELPER_METHOD_FRAME_BEGIN_1(thisRef);
-
- StringBufferObject::ReplaceBuffer(&thisRef, newBuffer, newLength);
-
- HELPER_METHOD_FRAME_END();
-}
-FCIMPLEND
-
-FCIMPL3(void, COMStringBuffer::ReplaceBufferAnsiInternal, StringBufferObject* thisRefUNSAFE, __in_ecount(newCapacity) CHAR* newBuffer, INT32 newCapacity)
-{
- FCALL_CONTRACT;
-
- STRINGBUFFERREF thisRef = (STRINGBUFFERREF)ObjectToOBJECTREF(thisRefUNSAFE);
- HELPER_METHOD_FRAME_BEGIN_1(thisRef);
-
- StringBufferObject::ReplaceBufferAnsi(&thisRef, newBuffer, newCapacity);
-
- HELPER_METHOD_FRAME_END();
-}
-FCIMPLEND
-
-
diff --git a/src/classlibnative/bcltype/stringbuffer.h b/src/classlibnative/bcltype/stringbuffer.h
deleted file mode 100644
index 4c151ef166..0000000000
--- a/src/classlibnative/bcltype/stringbuffer.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-//
-// File: StringBuffer.h
-//
-
-//
-// Purpose: Contains types and method signatures for the
-// StringBuffer class.
-//
-// Each function that we call through native only gets one argument,
-// which is actually a pointer to it's stack of arguments. Our structs
-// for accessing these are defined below.
-//
-
-//
-
-#ifndef _STRINGBUFFER_H_
-#define _STRINGBUFFER_H_
-
-#define CAPACITY_LOW 10000
-#define CAPACITY_MID 15000
-#define CAPACITY_HIGH 20000
-#define CAPACITY_FIXEDINC 5000
-#define CAPACITY_PERCENTINC 1.25
-
-class COMStringBuffer {
-
-public:
- //
- // NATIVE HELPER METHODS
- //
- static FCDECL3(void, ReplaceBufferInternal, StringBufferObject* thisRefUNSAFE, __in_ecount(newLength) WCHAR* newBuffer, INT32 newLength);
- static FCDECL3(void, ReplaceBufferAnsiInternal, StringBufferObject* thisRefUNSAFE, __in_ecount(newCapacity) CHAR* newBuffer, INT32 newCapacity);
-};
-
-#endif // _STRINGBUFFER_H
diff --git a/src/classlibnative/bcltype/stringnative.cpp b/src/classlibnative/bcltype/stringnative.cpp
index 6bf6deaf7e..1a05ffb430 100644
--- a/src/classlibnative/bcltype/stringnative.cpp
+++ b/src/classlibnative/bcltype/stringnative.cpp
@@ -20,7 +20,6 @@
#include "field.h"
#include "vars.hpp"
#include "stringnative.h"
-#include "stringbuffer.h"
#include "comutilnative.h"
#include "metasig.h"
#include "excep.h"